Fix bug 1162: return without printing VNF record when KDU status could not be determined
Change-Id: I448b7bed88a36c2df2085780054b73210bccfaab
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
diff --git a/osmclient/scripts/osm.py b/osmclient/scripts/osm.py
index 0b7d37c..06d77e0 100755
--- a/osmclient/scripts/osm.py
+++ b/osmclient/scripts/osm.py
@@ -1306,6 +1306,7 @@
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))