mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-20 10:50:08 +03:00
Do not use rescue when not neccesary in vmm
It makes ruby -wd unusable (cherry picked from commit f6fa8d6a4ed94d2012235ff5b2ad894b1e9f969c)
This commit is contained in:
parent
5f63b5dd26
commit
d1206cb0ac
@ -1153,7 +1153,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(
|
||||
[ '--retries', '-r', GetoptLong::OPTIONAL_ARGUMENT ],
|
||||
|
Loading…
x
Reference in New Issue
Block a user