From 6cda5b06ea314ddf61b7a463aa45048123c6c40d Mon Sep 17 00:00:00 2001 From: David Garcia Date: Wed, 2 Dec 2020 15:53:29 +0100 Subject: [PATCH] Fix minor issue Change-Id: I13f54c3327b4acaa04b97cfcd4c6bb4b383aae6b Signed-off-by: David Garcia --- osmclient/scripts/osm.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/osmclient/scripts/osm.py b/osmclient/scripts/osm.py index 9523965..c97f984 100755 --- a/osmclient/scripts/osm.py +++ b/osmclient/scripts/osm.py @@ -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: -- 2.25.1