Fix bug 1162: return without printing VNF record when KDU status could not be determined 75/9475/1
authorgarciadeblas <gerardo.garciadeblas@telefonica.com>
Mon, 20 Jul 2020 11:27:17 +0000 (11:27 +0000)
committergarciadeblas <gerardo.garciadeblas@telefonica.com>
Mon, 20 Jul 2020 11:27:17 +0000 (11:27 +0000)
Change-Id: I448b7bed88a36c2df2085780054b73210bccfaab
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
osmclient/scripts/osm.py

index e3b5ac6..af20edf 100755 (executable)
@@ -1306,6 +1306,7 @@ def vnf_show(ctx, name, literal, filter, kdu):
             time.sleep(5)
             t += 5
         print ("Could not determine KDU status")
+        return
 
     if literal:
         print(yaml.safe_dump(resp, indent=4, default_flow_style=False))