Commit 62f9e566 by Bach Dániel

vm: simplify shutdown call

parent bd83d4b0
......@@ -723,8 +723,8 @@ class SaveAsTemplateOperation(InstanceOperation):
if with_shutdown:
try:
ShutdownOperation(self.instance).call(parent_activity=activity,
user=user, task=task)
self.instance.shutdown(parent_activity=activity,
user=user, task=task)
except Instance.WrongStateError:
pass
......
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