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/?a=commitdiff_plain;h=refs%2Fchanges%2F93%2F8793%2F2;p=osm%2Fosmclient.git 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: