fix some default values in parsing 49/74649/1
authorLuc Provoost <luc.provoost@gmail.com>
Tue, 12 Nov 2024 11:30:59 +0000 (12:30 +0100)
committerLuc Provoost <luc.provoost@gmail.com>
Tue, 12 Nov 2024 11:30:59 +0000 (12:30 +0100)
'prox_socket' 'prox_launch_exit' and 'monitor' will be set to 'True' if
not in the configration file for that specific test machine. The code is
now cleaner.

Signed-off-by: Luc Provoost <luc.provoost@gmail.com>
Change-Id: I8f05a4eac884896139b2fb6deabbce4d3edfd2ae

VNFs/DPPD-PROX/helper-scripts/rapid/rapid_parser.py

index 74c2c9f..637740a 100644 (file)
@@ -147,11 +147,9 @@ class RapidConfigParser(object):
                                 "Minimum Value for bucket_size_exp is 11")
                 else:
                     machine[option] = testconfig.get(section, option)
-                for key in ['prox_socket','prox_launch_exit']:
-                   if key not in machine.keys():
-                       machine[key] = True
-            if 'monitor' not in machine.keys():
-                machine['monitor'] = True
+            for key in ['prox_socket','prox_launch_exit','monitor']:
+               if key not in machine.keys():
+                   machine[key] = True
             section = 'M%d'%machine_index[test_machine-1]
             options = config.options(section)
             for option in options: