mirror of
https://github.com/OpenNebula/one.git
synced 2024-12-23 17:33:56 +03:00
Feature #2796: Update --force description
This commit is contained in:
parent
65b148eeef
commit
8708f0222f
@ -162,7 +162,7 @@ class OneUserHelper < OpenNebulaHelper::OneHelper
|
||||
# Check that ONE_AUTH target can be written
|
||||
#-----------------------------------------------------------------------
|
||||
if File.file?(ONE_AUTH) && !options[:force]
|
||||
return -1, "File #{ONE_AUTH} exists, use --force to overwirte"
|
||||
return -1, "File #{ONE_AUTH} exists, use --force to overwrite"
|
||||
end
|
||||
|
||||
#-----------------------------------------------------------------------
|
||||
@ -348,8 +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 % ["LOGIN_TOKEN", user['LOGIN_TOKEN/TOKEN']] if !user['LOGIN_TOKEN/TOKEN'].nil?
|
||||
puts str % ["TOKEN 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'])]
|
||||
|
||||
|
@ -134,7 +134,7 @@ cmd=CommandParser::CmdParser.new(ARGV) do
|
||||
FORCE = {
|
||||
:name => "force",
|
||||
:large => "--force" ,
|
||||
:description => "Force probe upgrade in onehost sync"
|
||||
:description => "Force one_auth file rewrite"
|
||||
}
|
||||
|
||||
create_options = [READ_FILE, SHA1, SSH, X509, KEY, CERT, DRIVER]
|
||||
|
Loading…
Reference in New Issue
Block a user