1
0
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:
Jan Orel 2024-07-16 16:32:55 +02:00 committed by GitHub
parent b5c8bc1acb
commit d16d7c2290
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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