Commit 6ab9e981 by Dudás Ádám

vm: method for combined shutdown and save-as

closes #14
parent 0cea7892
......@@ -952,3 +952,8 @@ class Instance(AclBase, VirtualMachineDescModel, TimeStampedModel):
return tmpl
def shutdown_and_save_as_template(self, name, user=None, task_uuid=None,
self.shutdown(user, task_uuid)
self.save_as_template(name, **kwargs)
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