1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-22 18:50:08 +03:00

L #2603: Lintin code (#3168)

This commit is contained in:
Christian González 2019-04-02 18:19:58 +02:00 committed by Ruben S. Montero
parent b1b0762270
commit fc6e80a3cc

View File

@ -114,7 +114,7 @@ CommandParser::CmdParser.new(ARGV) do
exit(-1)
end
if !%r/^(http|https):\/\//.match(options[:server_rpc])
if !%r{^(http|https):\/\/}.match(options[:server_rpc])
puts 'Wrong protocol specified. Only http or https allowed!'
exit(-1)
end