1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-21 14:50:08 +03:00

B #4895: onedb fsck breaks with volatile disks

This commit is contained in:
Javi Fontan 2016-11-03 18:06:29 +01:00
parent b43bc21b1a
commit 4c555b0d16

View File

@ -2637,7 +2637,7 @@ EOT
# Params:
# +disk+:: Nokogiri::XML::Node describing a disk used by a template
def get_image_from_name(disk)
name = disk.at_xpath("IMAGE").content # always defined
name = disk.at_xpath("IMAGE") && disk.at_xpath("IMAGE").content
uid = disk.at_xpath("IMAGE_UID")
uname = disk.at_xpath("IMAGE_UNAME")