Skip to content

Commit

Permalink
Fix the id of storage class when update (#239)
Browse files Browse the repository at this point in the history
  • Loading branch information
huikaihoo authored and alexsomesan committed Dec 13, 2018
1 parent 7761ba0 commit dbccbc8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kubernetes/resource_kubernetes_storage_class.go
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ func resourceKubernetesStorageClassUpdate(d *schema.ResourceData, meta interface
return fmt.Errorf("Failed to update storage class: %s", err)
}
log.Printf("[INFO] Submitted updated storage class: %#v", out)
d.SetId(buildId(out.ObjectMeta))
d.SetId(out.ObjectMeta.Name)

return resourceKubernetesStorageClassRead(d, meta)
}
Expand Down

0 comments on commit dbccbc8

Please sign in to comment.