From a68376a7ffc1da369f867724745490e1bb921831 Mon Sep 17 00:00:00 2001 From: kbockmanrs Date: Tue, 31 Jan 2012 19:55:28 +0000 Subject: [PATCH] Rackspace create_image request - pass all options --- lib/fog/rackspace/requests/compute/create_image.rb | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/fog/rackspace/requests/compute/create_image.rb b/lib/fog/rackspace/requests/compute/create_image.rb index d0fcaaa51..5b79cbd66 100644 --- a/lib/fog/rackspace/requests/compute/create_image.rb +++ b/lib/fog/rackspace/requests/compute/create_image.rb @@ -21,9 +21,7 @@ module Fog 'serverId' => server_id } } - if options['name'] - data['image']['name'] = options['name'] - end + data['image'].merge!(options) request( :body => MultiJson.encode(data), :expects => 202,