+ projects = []
+
+ # Check if keystone is the auth/projects backend and get projects from there
+ if self.keystone:
+ try:
+ projects.extend(
+ map(lambda project: {'_id': project.id, 'name': project.name}, self.keystone.getProjects())
+ )
+ except Exception:
+ log.error('Cannot retrieve projects from keystone')