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:
parent
b43bc21b1a
commit
4c555b0d16
@ -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")
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user