1
0
mirror of https://github.com/OpenNebula/one.git synced 2024-12-23 17:33:56 +03:00

feature #595: im driver -l option does not get parameters

This commit is contained in:
Javi Fontan 2011-06-15 19:15:33 +02:00
parent 2b321e2687
commit 1202c18267

View File

@ -76,7 +76,7 @@ end
opts = GetoptLong.new(
[ '--retries', '-r', GetoptLong::OPTIONAL_ARGUMENT ],
[ '--threads', '-t', GetoptLong::OPTIONAL_ARGUMENT ],
[ '--local', '-l', GetoptLong::REQUIRED_ARGUMENT ]
[ '--local', '-l', GetoptLong::NO_ARGUMENT ]
)
hypervisor = ''
@ -92,7 +92,7 @@ begin
when '--threads'
threads = arg.to_i
when '--local'
local_actions=OpenNebulaDriver.parse_actions_list(arg)
local_actions={ 'MONITOR' => nil }
end
end
rescue Exception => e