Commit 7ecbd0fb by Bach Dániel

vm: fix #271 (Save should try to clean up (agent))

Closes #271
parent 2e1af39b
......@@ -680,6 +680,11 @@ class SaveAsTemplateOperation(InstanceOperation):
def _operation(self, activity, user, system, name=None,
with_shutdown=True, clone=False, task=None, **kwargs):
try:
self.instance._cleanup(parent_activity=activity, user=user)
except Instance.WrongStateError:
pass
if with_shutdown:
try:
ShutdownOperation(self.instance).call(parent_activity=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