Commit bf5f92b3 authored by anonym's avatar anonym
Browse files

Deal with expected libvirt error for Debian Jessie version.

parent 74f25619
...@@ -174,9 +174,10 @@ class VM ...@@ -174,9 +174,10 @@ class VM
rescue Libvirt::Error => e rescue Libvirt::Error => e
# While the CD-ROM is removed successfully we still get this # While the CD-ROM is removed successfully we still get this
# error, so let's ignore it. # error, so let's ignore it.
acceptable_error = "Call to virDomainUpdateDeviceFlags failed: internal " + acceptable_error =
"error: unable to execute QEMU command 'eject': Tray " + "Call to virDomainUpdateDeviceFlags failed: internal error: unable to " +
"of device '.*' is not open" "execute QEMU command 'eject': (Tray of device '.*' is not open|" +
"Device '.*' is locked)"
raise e if not(Regexp.new(acceptable_error).match(e.to_s)) raise e if not(Regexp.new(acceptable_error).match(e.to_s))
end end
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment