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:
parent
6b8e255d97
commit
a55fc20f57
1 changed files with 1 additions and 4 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue