mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
[ibm] create_image should do a PUT, not a POST, and needs 'state' param
This commit is contained in:
parent
8ad3a2679c
commit
5711e7a4d4
1 changed files with 2 additions and 1 deletions
|
@ -22,10 +22,11 @@ module Fog
|
|||
# * 'state'<~Integer>: status of image
|
||||
def create_image(instance_id, name, description)
|
||||
request(
|
||||
:method => 'POST',
|
||||
:method => 'PUT',
|
||||
:expects => 200,
|
||||
:path => "/instances/#{instance_id}",
|
||||
:body => {
|
||||
'state' => 'save',
|
||||
'name' => name,
|
||||
'description' => description
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue