Commit 0ec3899c by Szabolcs Gelencser

Fix template creation's missing lease attribute

parent 6608d8a8
......@@ -537,6 +537,7 @@ class SaveAsTemplateOperation(InstanceOperation):
image_id=template_image_id,
flavor_id=self.instance.flavor["id"],
owner_id=user.id,
lease=VmLease.get_or_create_lease(self.instance).lease
)
template.save()
......
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