diff options
author | Luc Provoost <luc.provoost@gmail.com> | 2024-11-12 12:30:59 +0100 |
---|---|---|
committer | Luc Provoost <luc.provoost@gmail.com> | 2024-11-12 12:30:59 +0100 |
commit | cdf25f9e0a3bd311358ae005f76b1966fb71c464 (patch) | |
tree | 3c9db2f62d20ee1ae8cfbeb6058a527d5ec9250a /VNFs/DPPD-PROX/helper-scripts/rapid | |
parent | c4b140c5f2931c248687a76c700c5f7def3b9025 (diff) |
fix some default values in parsing
'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
Diffstat (limited to 'VNFs/DPPD-PROX/helper-scripts/rapid')
-rw-r--r-- | VNFs/DPPD-PROX/helper-scripts/rapid/rapid_parser.py | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/VNFs/DPPD-PROX/helper-scripts/rapid/rapid_parser.py b/VNFs/DPPD-PROX/helper-scripts/rapid/rapid_parser.py index 74c2c9f4..637740a0 100644 --- a/VNFs/DPPD-PROX/helper-scripts/rapid/rapid_parser.py +++ b/VNFs/DPPD-PROX/helper-scripts/rapid/rapid_parser.py @@ -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: |