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

Fix code to metadata to the create image call.

This commit is contained in:
Rupak Ganguly 2012-05-16 17:07:23 -04:00
parent 6b8e255d97
commit a55fc20f57

View file

@ -18,10 +18,7 @@ module Fog
def create_image(server_id, name, metadata = {})
body = { 'createImage' =>
{ 'name' => name,
'metadata' =>
{ 'ImageType' => metadata[:image_type],
'ImageVersion' => metadata[:image_version]
}
'metadata' => metadata
}
}
server_action(server_id, body)