Commit ae821278 by Bach Dániel

vm: fix suboperation call in AddInterfaceOperation

parent 438460ef
......@@ -192,10 +192,8 @@ class AddInterfaceOperation(InstanceOperation):
if self.instance.is_running:
with activity.sub_activity(
readable_name=ugettext_noop("attach network")):
interface=net, parent_activity=activity)
except Exception as e:
if hasattr(e, 'libvirtError'):
self.rollback(net, activity)
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 sign in to comment