From: David Garcia Date: Wed, 2 Dec 2020 14:53:29 +0000 (+0100) Subject: Fix minor issue X-Git-Tag: release-v9.0-start~5 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=refs%2Fchanges%2F67%2F10067%2F1;p=osm%2Fosmclient.git Fix minor issue Change-Id: I13f54c3327b4acaa04b97cfcd4c6bb4b383aae6b Signed-off-by: David Garcia --- 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: