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 = if user then
|
||||||
user.id
|
user.id
|
||||||
else
|
else
|
||||||
identity.user.create(:name => @openstack_username,
|
response = identity.create_user(@openstack_username,
|
||||||
:password => 'password',
|
'password',
|
||||||
:email =>
|
"#{@openstack_username}@example.com")
|
||||||
"#{@openstack_username}@example",
|
response.body["user"]["id"]
|
||||||
:tenant_id => @openstack_tenant,
|
|
||||||
:enabled => true).id
|
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue