1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-01-10 01:17:40 +03:00

bug #1061: Fix oneimage show

This commit is contained in:
Daniel Molina 2012-01-13 17:09:43 +01:00
parent 55454f0b77
commit 673b3cd03f

View File

@ -67,8 +67,8 @@ class OneImageHelper < OpenNebulaHelper::OneHelper
puts str % ["PERSISTENT",
OpenNebulaHelper.boolean_to_str(image["PERSISTENT"])]
puts str % ["SOURCE",image['SOURCE']]
puts str % ["PATH",image['PATH']] if !image['PATH'].empty?
puts str % ["FSTYPE",image['FSTYPE']] if !image['FSTYPE'].empty?
puts str % ["PATH",image['PATH']] if image['PATH'] && !image['PATH'].empty?
puts str % ["FSTYPE",image['FSTYPE']] if image['FSTYPE'] && !image['FSTYPE'].empty?
puts str % ["SIZE", image['SIZE']]
puts str % ["STATE", image.short_state_str]
puts str % ["RUNNING_VMS", image['RUNNING_VMS']]