M #-: check error in user login command (#195)

(cherry picked from commit 230c8441ca)
This commit is contained in:
Alejandro Huertas Herrero authored and Tino Vazquez committed 2020-09-09 15:59:16 +02:00
1 parent afcc7159fd
commit 66931b1623
1 file changed
+4
+4
View File
@@ -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