mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
Merge pull request #1373 from kuinak/master
proper user creation in OS create_server mock
This commit is contained in:
commit
2ef483c89e
1 changed files with 4 additions and 6 deletions
|
@ -81,12 +81,10 @@ module Fog
|
|||
user_id = if user then
|
||||
user.id
|
||||
else
|
||||
identity.user.create(:name => @openstack_username,
|
||||
:password => 'password',
|
||||
:email =>
|
||||
"#{@openstack_username}@example",
|
||||
:tenant_id => @openstack_tenant,
|
||||
:enabled => true).id
|
||||
response = identity.create_user(@openstack_username,
|
||||
'password',
|
||||
"#{@openstack_username}@example.com")
|
||||
response.body["user"]["id"]
|
||||
end
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue