Skip to content

Commit

Permalink
Clean up OpenTelekomCloud
Browse files Browse the repository at this point in the history
  • Loading branch information
niuzhenguo committed Dec 28, 2018
1 parent fd11eb4 commit d196df3
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion huaweicloud/data_source_huaweicloud_images_image_v2.go
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ func dataSourceImagesImageV2Attributes(d *schema.ResourceData, image *images.Ima
d.Set("checksum", image.Checksum)
d.Set("size_bytes", image.SizeBytes)
if err := d.Set("metadata", image.Metadata); err != nil {
return fmt.Errorf("[DEBUG] Error saving metadata to state for OpenTelekomCloud image (%s): %s", d.Id(), err)
return fmt.Errorf("[DEBUG] Error saving metadata to state for HuaweiCloud image (%s): %s", d.Id(), err)
}
d.Set("created_at", image.CreatedAt)
d.Set("updated_at", image.UpdatedAt)
Expand Down
2 changes: 1 addition & 1 deletion huaweicloud/data_source_huaweicloud_rts_stack_v1.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ func dataSourceRTSStackV1Read(d *schema.ResourceData, meta interface{}) error {
config := meta.(*Config)
orchestrationClient, err := config.orchestrationV1Client(GetRegion(d, config))
if err != nil {
return fmt.Errorf("Error creating OpenTelekomCloud rts client: %s", err)
return fmt.Errorf("Error creating HuaweiCloud rts client: %s", err)
}
stackName := d.Get("name").(string)

Expand Down
4 changes: 2 additions & 2 deletions huaweicloud/resource_huaweicloud_images_image_v2.go
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ func resourceImagesImageV2Read(d *schema.ResourceData, meta interface{}) error {
d.Set("checksum", img.Checksum)
d.Set("size_bytes", img.SizeBytes)
if err := d.Set("metadata", img.Metadata); err != nil {
return fmt.Errorf("[DEBUG] Error saving metadata to state for OpenTelekomCloud image (%s): %s", d.Id(), err)
return fmt.Errorf("[DEBUG] Error saving metadata to state for HuaweiCloud image (%s): %s", d.Id(), err)
}
d.Set("created_at", img.CreatedAt)
d.Set("update_at", img.UpdatedAt)
Expand All @@ -280,7 +280,7 @@ func resourceImagesImageV2Read(d *schema.ResourceData, meta interface{}) error {
d.Set("protected", img.Protected)
d.Set("size_bytes", img.SizeBytes)
if err := d.Set("tags", img.Tags); err != nil {
return fmt.Errorf("[DEBUG] Error saving tags to state for OpenTelekomCloud image (%s): %s", d.Id(), err)
return fmt.Errorf("[DEBUG] Error saving tags to state for HuaweiCloud image (%s): %s", d.Id(), err)
}
d.Set("visibility", img.Visibility)
d.Set("region", GetRegion(d, config))
Expand Down
4 changes: 2 additions & 2 deletions huaweicloud/resource_huaweicloud_maas_task_v1_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ func testAccCheckMaasTaskV1Destroy(s *terraform.State) error {
config := testAccProvider.Meta().(*Config)
maasClient, err := config.maasV1Client(OS_REGION_NAME)
if err != nil {
return fmt.Errorf("Error creating OpenTelekomCloud maas client: %s", err)
return fmt.Errorf("Error creating HuaweiCloud maas client: %s", err)
}

for _, rs := range s.RootModule().Resources {
Expand Down Expand Up @@ -63,7 +63,7 @@ func testAccCheckMaasTaskV1Exists(n string) resource.TestCheckFunc {
config := testAccProvider.Meta().(*Config)
maasClient, err := config.maasV1Client(OS_REGION_NAME)
if err != nil {
return fmt.Errorf("Error creating OpenTelekomCloud maas client: %s", err)
return fmt.Errorf("Error creating HuaweiCloud maas client: %s", err)
}

found, err := task.Get(maasClient, rs.Primary.ID).Extract()
Expand Down

0 comments on commit d196df3

Please sign in to comment.