mirror of
https://github.com/OpenNebula/one.git
synced 2024-12-25 23:21:29 +03:00
Do not use rescue when not neccesary in vmm
It makes ruby -wd unusable
This commit is contained in:
parent
a35b4d483c
commit
f6fa8d6a4e
@ -1151,7 +1151,11 @@ end
|
|||||||
#
|
#
|
||||||
################################################################################
|
################################################################################
|
||||||
|
|
||||||
LIVE_DISK_SNAPSHOTS = ENV['LIVE_DISK_SNAPSHOTS'].split rescue []
|
if ENV['LIVE_DISK_SNAPSHOTS']
|
||||||
|
LIVE_DISK_SNAPSHOTS = ENV['LIVE_DISK_SNAPSHOTS'].split
|
||||||
|
else
|
||||||
|
LIVE_DISK_SNAPSHOTS = []
|
||||||
|
end
|
||||||
|
|
||||||
opts = GetoptLong.new(
|
opts = GetoptLong.new(
|
||||||
[ '--retries', '-r', GetoptLong::OPTIONAL_ARGUMENT ],
|
[ '--retries', '-r', GetoptLong::OPTIONAL_ARGUMENT ],
|
||||||
|
Loading…
Reference in New Issue
Block a user