mirror of
https://github.com/OpenNebula/one.git
synced 2026-12-03 21:52:31 +09:00
(cherry picked from commit da5e716bba)
This commit is contained in:
1 parent
5721f1afec
commit
eac404a950
1 file changed
+1
-1
@@ -1451,7 +1451,7 @@ class OneVMHelper < OpenNebulaHelper::OneHelper
|
||||
vm_snapshots.each do |disk|
|
||||
disk_id = disk['DISK_ID']
|
||||
|
||||
sshots = [disk['SNAPSHOT']].flatten
|
||||
sshots = [disk['SNAPSHOT'] || []].flatten
|
||||
sshots.each do |snapshot|
|
||||
data = snapshot.merge('DISK_ID' => disk_id)
|
||||
snapshots << data
|
||||
|
||||
Reference in new issue
Block a user