Merge "Fix warlock model creation"

This commit is contained in:
Jenkins
2016-08-12 15:15:46 +00:00
committed by Gerrit Code Review
5 changed files with 19 additions and 12 deletions
+2 -1
View File
@@ -35,7 +35,8 @@ class Controller(object):
@utils.memoized_property
def model(self):
schema = self.schema_client.get('task')
return warlock.model_factory(schema.raw(), schemas.SchemaBasedModel)
return warlock.model_factory(schema.raw(),
base_class=schemas.SchemaBasedModel)
def list(self, **kwargs):
"""Retrieve a listing of Task objects.