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

Merge pull request #2263 from juniorz/fix_mocking

[openstack] Fix mocking for create server request.
This commit is contained in:
Kyle Rames 2013-10-15 13:25:19 -07:00
commit e50b86efee

View file

@ -93,7 +93,7 @@ module Fog
response.status = 202
server_id = Fog::Mock.random_numbers(6).to_s
identity = Fog::Identity[:openstack]
identity = Fog::Identity::OpenStack.new :openstack_auth_url => credentials[:openstack_auth_url]
user = identity.users.find { |u|
u.name == @openstack_username
}