From 31a4333323a06a79ce37c1292da080cd74a59c5c Mon Sep 17 00:00:00 2001 From: Nat Welch Date: Thu, 10 Oct 2013 21:08:17 -0700 Subject: [PATCH] [google|compute] Make sure we always set disk image size. --- lib/fog/google/models/compute/disk.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/fog/google/models/compute/disk.rb b/lib/fog/google/models/compute/disk.rb index 622405db6..1e1b289c7 100644 --- a/lib/fog/google/models/compute/disk.rb +++ b/lib/fog/google/models/compute/disk.rb @@ -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)