feature #2796: Add login token info to oneuser tool

This commit is contained in:
Ruben S. Montero committed 2014-09-08 13:02:15 +02:00
1 parent a552dbd409
commit 259ada451a
1 file changed
+2 -1
+2 -1
View File
@@ -348,7 +348,8 @@ class OneUserHelper < OpenNebulaHelper::OneHelper
puts str % ["SECONDARY GROUPS", groups.join(',') ] if groups.size > 1
puts str % ["PASSWORD", user['PASSWORD']]
puts str % ["AUTH_DRIVER", user['AUTH_DRIVER']]
puts str % ["LOGIN_TOKEN", user['LOGIN_TOKEN/TOKEN']]
puts str % ["VALIDITY", "not after #{Time.at(user['LOGIN_TOKEN/EXPIRATION_TIME'].to_i)}"] if !user['LOGIN_TOKEN/EXPIRATION_TIME'].nil?
puts str % ["ENABLED",
OpenNebulaHelper.boolean_to_str(user['ENABLED'])]