mirror of
https://github.com/OpenNebula/one.git
synced 2026-11-23 05:04:56 +09:00
(cherry picked from commit 8c9b56bc29)
This commit is contained in:
1 parent
0f428a7ec1
commit
cdda2e6292
1 file changed
+14
@@ -183,6 +183,20 @@ EOT
|
||||
answer = Base64::encode64(answer).strip.delete("\n")
|
||||
end
|
||||
|
||||
when 'boolean'
|
||||
print header
|
||||
|
||||
answer = STDIN.readline.chop
|
||||
|
||||
# use default in case it's empty
|
||||
answer = initial if answer.empty?
|
||||
|
||||
unless %w[YES NO].include?(answer)
|
||||
STDERR.puts "Invalid boolean '#{answer}'"
|
||||
STDERR.puts 'Boolean has to be YES or NO'
|
||||
exit(-1)
|
||||
end
|
||||
|
||||
when 'password'
|
||||
print header
|
||||
|
||||
|
||||
Reference in new issue
Block a user