Skip to content

Commit

Permalink
Unset operation when reading instance_group_manager resource (#10859) (
Browse files Browse the repository at this point in the history
…#18380)

[upstream:61066cfe9fa0da1023d45ab8dc704b3403b65a09]

Signed-off-by: Modular Magician <magic-modules@google.com>
  • Loading branch information
modular-magician authored Jun 10, 2024
1 parent 3c456fc commit b17309f
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -721,8 +721,8 @@ func resourceComputeInstanceGroupManagerRead(d *schema.ResourceData, meta interf
Name: operation,
Zone: zone,
}
if err := d.Set("operation", op.Name); err != nil {
return fmt.Errorf("Error setting operation: %s", err)
if err := d.Set("operation", ""); err != nil {
return fmt.Errorf("Error unsetting operation: %s", err)
}
err = ComputeOperationWaitTime(config, op, project, "Creating InstanceGroupManager", userAgent, d.Timeout(schema.TimeoutCreate))
if err != nil {
Expand Down

0 comments on commit b17309f

Please sign in to comment.