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