From 70a202f07cc014070a1a31708366ef2f165d0eb8 Mon Sep 17 00:00:00 2001 From: garciadeblas Date: Mon, 13 Apr 2020 06:41:57 +0000 Subject: [PATCH] osm.py: minor fix when using ns-list --long Change-Id: I159c6644363e9cf071eae6353207a41fa9586197 Signed-off-by: garciadeblas --- 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 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: -- 2.17.1