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:
parent
299dc58624
commit
dddd551fe3
1 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue