domain: rename: don't overwrite nvram error

Just raise whatever error is throw, so we have the backtrace if needed
This commit is contained in:
Cole Robinson 2017-03-08 13:21:28 -05:00
parent 92c230d111
commit 3030c585b9

View File

@ -592,10 +592,7 @@ class vmmDomain(vmmLibvirtObject):
new_nvram = None
old_nvram = None
if self.has_nvram():
try:
new_nvram, old_nvram = self._copy_nvram_file(new_name)
except Exception as error:
raise RuntimeError("Cannot rename nvram VARS: '%s'" % error)
new_nvram, old_nvram = self._copy_nvram_file(new_name)
try:
self.define_name(new_name)