Use /bcloud/texture-library end point to fetch texture library projects.

This commit is contained in:
2016-05-18 12:50:51 +02:00
parent 5c7343f8c9
commit ba4c951d32
2 changed files with 8 additions and 7 deletions

View File

@@ -275,10 +275,8 @@ async def get_texture_projects() -> list:
"""Returns project dicts that contain textures."""
try:
children = await pillar_call(pillarsdk.Project.all, {
'where': {'node_types.name': 'texture'},
'sort': 'name',
})
children = await pillar_call(pillarsdk.Project.all_from_endpoint,
'/bcloud/texture-libraries')
except pillarsdk.ResourceNotFound as ex:
log.warning('Unable to find texture projects: %s', ex)
raise PillarError('Unable to find texture projects: %s' % ex)