From: garciadeblas Date: Mon, 13 Apr 2020 06:41:57 +0000 (+0000) Subject: osm.py: minor fix when using ns-list --long X-Git-Tag: v7.1.0rc1^2~8 X-Git-Url: https://osm.etsi.org/gitweb/?p=osm%2Fosmclient.git;a=commitdiff_plain;h=70a202f07cc014070a1a31708366ef2f165d0eb8 osm.py: minor fix when using ns-list --long Change-Id: I159c6644363e9cf071eae6353207a41fa9586197 Signed-off-by: garciadeblas --- diff --git a/osmclient/scripts/osm.py b/osmclient/scripts/osm.py index 6245bb3..d405d6d 100755 --- a/osmclient/scripts/osm.py +++ b/osmclient/scripts/osm.py @@ -230,7 +230,7 @@ def ns_list(ctx, filter, long): summary = "" n_nets = 0 status_nets = {} - net_list = status_dict['nets'] + net_list = status_dict.get('nets',[]) for net in net_list: n_nets += 1 if net['status'] not in status_nets: