From: Luc Provoost Date: Tue, 12 Nov 2024 11:30:59 +0000 (+0100) Subject: fix some default values in parsing X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=commitdiff_plain;h=cdf25f9e0a3bd311358ae005f76b1966fb71c464;p=samplevnf.git 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 Change-Id: I8f05a4eac884896139b2fb6deabbce4d3edfd2ae --- 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: