1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00

[rackspace|blockstrage] fixed mock error

This commit is contained in:
Eugene Howe 2013-10-03 10:33:12 -04:00
parent 696ac6a87c
commit 893d7a8f88

View file

@ -77,7 +77,7 @@ module Fog
"availability_zone" => "nova",
"metadata" => {},
}
if options[:snapshot_id]
if snapshot_id = options[:snapshot_id]
snapshot = self.data[:snapshots][snapshot_id]
volume.merge!("size" => snapshot["size"])
end