mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
Change flavorId to flavorRef and imageId to imageRef as the specs changed. Also, change expected status to be 202 instead of 200.
This commit is contained in:
parent
7e1a287e4d
commit
d1172a6bd3
1 changed files with 4 additions and 4 deletions
|
@ -36,8 +36,8 @@ module Fog
|
||||||
def create_server(flavor_id, image_id, options = {})
|
def create_server(flavor_id, image_id, options = {})
|
||||||
data = {
|
data = {
|
||||||
'server' => {
|
'server' => {
|
||||||
'flavorId' => flavor_id,
|
'flavorRef' => flavor_id,
|
||||||
'imageId' => image_id
|
'imageRef' => image_id
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if options['metadata']
|
if options['metadata']
|
||||||
|
@ -57,7 +57,7 @@ module Fog
|
||||||
end
|
end
|
||||||
request(
|
request(
|
||||||
:body => MultiJson.encode(data),
|
:body => MultiJson.encode(data),
|
||||||
:expects => 200,
|
:expects => 202,
|
||||||
:method => 'POST',
|
:method => 'POST',
|
||||||
:path => 'servers.json'
|
:path => 'servers.json'
|
||||||
)
|
)
|
||||||
|
@ -69,7 +69,7 @@ module Fog
|
||||||
|
|
||||||
def create_server(flavor_id, image_id, options = {})
|
def create_server(flavor_id, image_id, options = {})
|
||||||
response = Excon::Response.new
|
response = Excon::Response.new
|
||||||
response.status = 200
|
response.status = 202
|
||||||
|
|
||||||
data = {
|
data = {
|
||||||
'addresses' => { 'private' => ['0.0.0.0'], 'public' => ['0.0.0.0'] },
|
'addresses' => { 'private' => ['0.0.0.0'], 'public' => ['0.0.0.0'] },
|
||||||
|
|
Loading…
Add table
Reference in a new issue