B #4895: onedb fsck breaks with volatile disks

(cherry picked from commit 4c555b0d16)
This commit is contained in:
Javi Fontan committed 2016-11-03 18:07:21 +01:00
1 parent 7df7f4ff73
commit db337d8ea1
1 file changed
+1 -1
+1 -1
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")