From cdf25f9e0a3bd311358ae005f76b1966fb71c464 Mon Sep 17 00:00:00 2001 From: Luc Provoost Date: Tue, 12 Nov 2024 12:30:59 +0100 Subject: [PATCH] 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 --- VNFs/DPPD-PROX/helper-scripts/rapid/rapid_parser.py | 8 +++----- 1 file 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: -- 2.16.6