mirror of
https://github.com/OpenNebula/one.git
synced 2026-11-22 20:54:49 +09:00
M #-: check error in user login command (#195)
(cherry picked from commit 230c8441ca)
This commit is contained in:
1 parent
afcc7159fd
commit
66931b1623
1 file changed
+4
@@ -201,6 +201,10 @@ class OneUserHelper < OpenNebulaHelper::OneHelper
|
||||
login_client = self.get_login_client(username, options)
|
||||
end
|
||||
|
||||
if (login_client.is_a? Array) && login_client[0] == -1
|
||||
return login_client
|
||||
end
|
||||
|
||||
user = OpenNebula::User.new(User.build_xml, login_client)
|
||||
|
||||
egid = options[:group] || -1
|
||||
|
||||
Reference in new issue
Block a user