Fix minor issue 67/10067/1
authorDavid Garcia <david.garcia@canonical.com>
Wed, 2 Dec 2020 14:53:29 +0000 (15:53 +0100)
committerDavid Garcia <david.garcia@canonical.com>
Wed, 2 Dec 2020 14:53:29 +0000 (15:53 +0100)
Change-Id: I13f54c3327b4acaa04b97cfcd4c6bb4b383aae6b
Signed-off-by: David Garcia <david.garcia@canonical.com>
osmclient/scripts/osm.py

index 9523965..c97f984 100755 (executable)
@@ -71,7 +71,7 @@ def check_client_version(obj, what, version='sol005'):
 
 def get_project(project_list, item):
     # project_list = ctx.obj.project.list()
-    item_project_list = item.get('_admin').get('projects_read')
+    item_project_list = item.get('_admin', {}).get('projects_read')
     project_id = 'None'
     project_name = 'None'
     if item_project_list: