Report: Add message if no oper data is present 13/19513/2
authorTibor Frank <tifrank@cisco.com>
Fri, 10 May 2019 14:25:12 +0000 (16:25 +0200)
committerTibor Frank <tifrank@cisco.com>
Fri, 10 May 2019 14:26:15 +0000 (14:26 +0000)
Change-Id: Ic70f603a652ae1297aba29187d1f61f30678be41
Signed-off-by: Tibor Frank <tifrank@cisco.com>
resources/tools/presentation/generator_tables.py

index 681cc1f..0646db3 100644 (file)
@@ -161,6 +161,8 @@ def table_merged_details(table, input_data):
                     try:
                         col_data = str(data[test][column["data"].
                                        split(" ")[1]]).replace('"', '""')
+                        col_data = replace(col_data, "No Data",
+                                           "Not Captured     ")
                         if column["data"].split(" ")[1] in ("conf-history",
                                                             "show-run"):
                             col_data = replace(col_data, " |br| ", "",