mirror of
https://github.com/OpenNebula/one.git
synced 2025-02-03 13:47:01 +03:00
parent
34268e025c
commit
b1b0762270
@ -114,6 +114,11 @@ CommandParser::CmdParser.new(ARGV) do
|
||||
exit(-1)
|
||||
end
|
||||
|
||||
if !%r/^(http|https):\/\//.match(options[:server_rpc])
|
||||
puts 'Wrong protocol specified. Only http or https allowed!'
|
||||
exit(-1)
|
||||
end
|
||||
|
||||
template = <<-EOT
|
||||
SERVER = [
|
||||
NAME="#{options[:server_name]}",
|
||||
|
Loading…
x
Reference in New Issue
Block a user