mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
[google|compute] Make sure we always set disk image size.
This commit is contained in:
parent
95f1591fa3
commit
31a4333323
1 changed files with 2 additions and 1 deletions
|
@ -27,9 +27,10 @@ module Fog
|
|||
options = {}
|
||||
if source_image.nil?
|
||||
options['sourceSnapshot'] = source_snapshot
|
||||
options['sizeGb'] = size_gb
|
||||
end
|
||||
|
||||
options['sizeGb'] = size_gb
|
||||
|
||||
data = service.insert_disk(name, zone_name, source_image, options).body
|
||||
data = service.backoff_if_unfound {service.get_disk(name, zone_name).body}
|
||||
service.disks.merge_attributes(data)
|
||||
|
|
Loading…
Reference in a new issue