1
0
Fork 0
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:
Nelvin Driz 2012-09-07 09:37:52 +08:00 committed by Nelvin Driz
parent b62e37e0e3
commit ad0e84be56

View file

@ -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)