Override find function in project

This change overrides the base find functionality within project
in order to encode tags to a base string.

Change-Id: I4599b8a4dafcb9d4178c973eb48a8ad3a7d292f5
This commit is contained in:
Gage Hugo 2018-01-24 23:23:43 -06:00
parent 1e8c9302fc
commit 53972d68f6
1 changed files with 5 additions and 0 deletions

View File

@ -205,6 +205,11 @@ class ProjectManager(base.CrudManager):
p.tags = self._encode_tags(getattr(p, 'tags', []))
return p
def find(self, **kwargs):
p = super(ProjectManager, self).find(**kwargs)
p.tags = self._encode_tags(getattr(p, 'tags', []))
return p
def update(self, project, name=None, domain=None, description=None,
enabled=None, **kwargs):
"""Update a project.