1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-02-03 13:47:01 +03:00

B #2603 Validate RPC argument when a server is added to a zone (#3166)

This commit is contained in:
Christian González 2019-04-02 17:27:48 +02:00 committed by Ruben S. Montero
parent 34268e025c
commit b1b0762270

View File

@ -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]}",