1
0
Fork 0
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:
Decklin Foster 2012-02-28 17:42:07 -05:00
parent 8ad3a2679c
commit 5711e7a4d4

View file

@ -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
}