mirror of
https://github.com/OpenNebula/one.git
synced 2024-12-22 13:33:52 +03:00
B #-: Avoid .filter for Hash in ruby 2.5 (#3154)
This commit is contained in:
parent
b5c8bc1acb
commit
d16d7c2290
@ -96,7 +96,7 @@ begin
|
||||
raise 'cannot list backup contents' unless rc.code == 0
|
||||
|
||||
disk_urls = JSON.parse(rc.stdout)
|
||||
disk_urls = disk_urls.filter {|id, _url| id.to_i == disk_id } if disk_id != -1
|
||||
disk_urls = disk_urls.select {|id, _url| id.to_i == disk_id } if disk_id != -1
|
||||
|
||||
# --------------------------------------------------------------------------
|
||||
# Restore disk_urls in Host VM folder
|
||||
|
Loading…
Reference in New Issue
Block a user