1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-23 22:50:09 +03:00

feature : restored get_user for the EC2 Server

This commit is contained in:
Ruben S. Montero 2010-07-17 06:51:23 +02:00
parent a6edd2483a
commit 79432c7bd3

@ -89,6 +89,25 @@ class CloudServer
return client
end
# Gets the data associated with a user
# name:: _String_ the name of the user
# [return] _Hash_ with the user data
def get_user(name)
user = nil
@user_pool.info
@user_pool.each{ |u|
if u.name==name
user=Hash.new
user[:id] = u.id
user[:name] = u.name
user[:password] = u[:password]
end
}
return user
end
###########################################################################
# Repository Methods
###########################################################################