mirror of
https://github.com/OpenNebula/one.git
synced 2026-11-23 13:15:14 +09:00
1 parent
b1b0762270
commit
fc6e80a3cc
1 file changed
+1
-1
+1
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user