1
0
Fork 0
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:
Nat Welch 2013-10-10 21:08:17 -07:00
parent 95f1591fa3
commit 31a4333323

View file

@ -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)