Skip to content

Commit

Permalink
[Style] doc fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
anton-sidelnikov committed Nov 25, 2024
1 parent 9c2178b commit 1d7af0c
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion docs/resources/ims_image_share_v1.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ layout: "opentelekomcloud"
page_title: "OpenTelekomCloud: opentelekomcloud_ims_image_share_v1"
sidebar_current: "docs-opentelekomcloud-resource-ims-image-share-v1"
description: |-
Manages a IMS Image Share resource within OpenTelekomCloud.
Manages a IMS Image Share resource within OpenTelekomCloud.
---

# opentelekomcloud_ims_image_share_v1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ func TestAccImsImageShare_basic(t *testing.T) {
shareProjectID := os.Getenv("OS_PROJECT_ID_2")
shareProjectID2 := os.Getenv("OS_PROJECT_ID_3")
if privateImageID == "" || shareProjectID == "" {
t.Skip("OS_PRIVATE_IMAGE_ID or OS_PROJECT_ID_2 are empty, but test requires")
t.Skip("OS_PRIVATE_IMAGE_ID, OS_PROJECT_ID_2 or OS_PROJECT_ID_3 are empty, but test requires")
}

var obj interface{}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,11 +61,11 @@ func resourceImsImageShareCreate(ctx context.Context, d *schema.ResourceData, me
Projects: common.ExpandToStringSlice(d.Get("target_project_ids").(*schema.Set).List()),
})
if err != nil {
return fmterr.Errorf("error requesting share for private image: %w", err)
return fmterr.Errorf("error requesting OpenTelekomCloud ims share for private image: %w", err)
}
err = waitForImageShareOrAcceptJobSuccess(ctx, d, client, *jobId, schema.TimeoutCreate)
if err != nil {
return fmterr.Errorf("error while waiting share for private image to become active: %w", err)
return fmterr.Errorf("error while waiting OpenTelekomCloud ims share for private image to become active: %w", err)
}
d.SetId(sourceImageId)

Expand Down Expand Up @@ -99,11 +99,11 @@ func resourceImsImageShareUpdate(ctx context.Context, d *schema.ResourceData, me
Projects: common.ExpandToStringSlice(shareProjectIds.List()),
})
if err != nil {
return fmterr.Errorf("error requesting share for private image: %w", err)
return fmterr.Errorf("error requesting OpenTelekomCloud ims share for private image: %w", err)
}
err = waitForImageShareOrAcceptJobSuccess(ctx, d, client, *jobId, schema.TimeoutCreate)
if err != nil {
return fmterr.Errorf("error while waiting share for private image to become active: %w", err)
return fmterr.Errorf("error while waiting OpenTelekomCloud ims share for private image to become active: %w", err)
}
}
if unShareProjectIds.Len() > 0 {
Expand All @@ -112,11 +112,11 @@ func resourceImsImageShareUpdate(ctx context.Context, d *schema.ResourceData, me
Projects: common.ExpandToStringSlice(unShareProjectIds.List()),
})
if err != nil {
return fmterr.Errorf("error requesting share for private image: %w", err)
return fmterr.Errorf("error requesting OpenTelekomCloud ims share for private image: %w", err)
}
err = waitForImageShareOrAcceptJobSuccess(ctx, d, client, *jobId, schema.TimeoutDelete)
if err != nil {
return fmterr.Errorf("error while waiting share for private image to become deleted: %w", err)
return fmterr.Errorf("error while waiting OpenTelekomCloud ims share for private image to become deleted: %w", err)
}
}
}
Expand All @@ -137,11 +137,11 @@ func resourceImsImageShareDelete(ctx context.Context, d *schema.ResourceData, me
Projects: common.ExpandToStringSlice(projectIds.(*schema.Set).List()),
})
if err != nil {
return fmterr.Errorf("error requesting delete share for private image: %w", err)
return fmterr.Errorf("error requesting delete OpenTelekomCloud ims share for private image: %w", err)
}
err = waitForImageShareOrAcceptJobSuccess(ctx, d, client, *jobId, schema.TimeoutDelete)
if err != nil {
return fmterr.Errorf("error while waiting share for private image to become deleted: %w", err)
return fmterr.Errorf("error while waiting OpenTelekomCloud ims share for private image to become deleted: %w", err)
}

return nil
Expand Down

0 comments on commit 1d7af0c

Please sign in to comment.