mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
[openstack|compute] Fix Server Mocks and find_by_id
method
Conflicts: lib/fog/openstack/requests/identity/update_user.rb
This commit is contained in:
parent
b62e37e0e3
commit
ad0e84be56
1 changed files with 4 additions and 1 deletions
|
@ -17,7 +17,10 @@ module Fog
|
|||
def find_by_id(id)
|
||||
self.find {|user| user.id == id} ||
|
||||
Fog::Identity::OpenStack::User.new(
|
||||
connection.get_user_by_id(id).body['user'])
|
||||
connection.get_user_by_id(id).body['user'].merge(
|
||||
connection: connection
|
||||
)
|
||||
)
|
||||
end
|
||||
|
||||
def destroy(id)
|
||||
|
|
Loading…
Add table
Reference in a new issue