-
Notifications
You must be signed in to change notification settings - Fork 9.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow resizing of Google Cloud persistent disks #15077
Conversation
bashtoni
commented
Jun 5, 2017
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@@ -68,7 +69,7 @@ func resourceComputeDisk() *schema.Resource { | |||
"size": &schema.Schema{ | |||
Type: schema.TypeInt, | |||
Optional: true, | |||
ForceNew: true, | |||
ForceNew: false, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This can be removed completely :)
return err | ||
} | ||
|
||
if d.HasChange("size") { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does the machine have to be stopped? Do we have to wait for a specific status before we know that this has worked as expected?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Resizing is an on-line operation. The API docs don't specify the possible states of a disk, and I've never been able to observe another state than 'Ready'.
d893325
to
18fdcf2
Compare
@stack72 Thanks for reviewing Paul. I removed the unnecessary |
LGTM! thanks for making the change and the explanation :) P. |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further. |