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

M #: Fix minor bug in fsck tool (#1405)

fsck tool breaks when image DS name reference is corrupted. `text`
method cannot be used to overwrite the XML node content.
This commit is contained in:
Christian González 2021-08-09 15:27:58 +02:00 committed by GitHub
parent 95ecbe6f99
commit 6d07a4f844
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -115,7 +115,7 @@ module OneDBFsck
"It will be changed to #{ds_entry[:name]}")
doc.root.xpath('DATASTORE').each do |e|
e.text = ds_entry[:name]
e.content = ds_entry[:name]
end
@fixes_datastore_image[row[:oid]] = doc.root.to_s