1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-23 22:50:09 +03:00

Feature #3718: Use Monitoring data for snapshot size in cli commands

This commit is contained in:
Jaime Melis 2015-06-29 19:56:34 +02:00
parent e48d1a28fe
commit 14ce6f5c49

View File

@ -1019,7 +1019,7 @@ class OneVMHelper < OpenNebulaHelper::OneHelper
snapshots.each do |snapshot|
disk_id = snapshot["DISK_ID"]
snap_id = snapshot["ID"]
xpath = "SNAPSHOTS[DISK_ID='#{disk_id}']/SNAPSHOT[ID='#{snap_id}']/SIZE"
xpath = "MONITORING/SNAPSHOT_SIZE[ID='#{snap_id}' and DISK_ID='#{disk_id}']/SIZE"
snapshot["MONITOR_SIZE"] = vm[xpath]
end