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:
commit
e50b86efee
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue