Commit 9cfa0f18 by Máhonfai Bálint

Add method to instance template model to get template instances of a user

parent 59621987
......@@ -200,6 +200,9 @@ class InstanceTemplate(AclBase, VirtualMachineDescModel, TimeStampedModel):
def get_running_instances(self):
return, status="RUNNING")
def get_user_instances(self, user):
return, owner=user)
def metric_prefix(self):
return 'template.%d' %
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