one_client gets the user

git-svn-id: http://svn.opennebula.org/one/trunk@838 3034c82b-c49b-4eb3-8279-a7acafdc01c0
This commit is contained in:
Rubén S. Montero committed 2009-10-11 01:12:30 +00:00
1 parent 5a891e767c
commit a4e6ab50ec
1 file changed
+4
+4
View File
@@ -70,6 +70,8 @@ class CloudServer
# Generates an OpenNebula Session for the given user
# user_name:: _String_ the name of the user
def one_client_user(user_name)
user = get_user(user_name)
if !user
error = OpenNebula::Error.new("User not found")
@@ -82,6 +84,8 @@ class CloudServer
return client
end
# Authenticates a user
#
def authenticate?(name, password)
user = get_user(name)