Commit 5970aee7 by Guba Sándor

storage: docstring and comment

parent f577b00d
......@@ -395,6 +395,11 @@ class Disk(AclBase, TimeStampedModel):
def save_as(self, user=None, task_uuid=None, timeout=300):
"""Save VM as template.
VM must be in STOPPED state to perform this action.
The timeout parameter is not used now.
mapping = {
'qcow2-snap': ('qcow2-norm', self.base),
......@@ -420,7 +425,7 @@ class Disk(AclBase, TimeStampedModel):
).get() # Timeout
disk.ready = True
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