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

Fix OpenStack compute docs

The OpenStack compute docs had params for the request layer
in a model example.  I switched it to all model.
This commit is contained in:
TerryHowe 2015-06-01 08:28:57 -06:00
parent 299dc58624
commit dddd551fe3

View file

@ -17,7 +17,9 @@ compute_client ||= ::Fog::Compute.new(:provider => :openstack,
# Options include metadata, availability zone, etc...
begin
vm = compute_client.servers.create(name, image, flavor, options = {})
vm = compute_client.servers.create(:name => 'lucky',
:image_ref => 'fcd8f8a9',
:flavor_ref => 4)
rescue => e
puts JSON.parse(e.response.body)['badRequest']['message']
end