Commit 5d413623 authored by Alfonso Tierno's avatar Alfonso Tierno
Browse files

bug 1045. Show error if any at ns-list when ns operation is PROCESSING



Change-Id: I59698403c93fe232b804e607ab45feaa9c0a67e1
Signed-off-by: default avatartierno <alfonso.tiernosepulveda@telefonica.com>
parent e0fb4995
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -359,7 +359,7 @@ def ns_list(ctx, filter, long):
                vim = vim_name
            current_operation = "{} ({})".format(nsr['currentOperation'],nsr['currentOperationID'])
            error_details = "N/A"
            if ns_state == "BROKEN" or ns_state == "DEGRADED":
            if ns_state == "BROKEN" or ns_state == "DEGRADED" or nsr['errorDescription']:
                error_details = "{}\nDetail: {}".format(nsr['errorDescription'], nsr['errorDetail'])
        else:
            nsopdata = ctx.obj.ns.get_opdata(ns['id'])