From 7eb5c53fc7c4f213b0232a2e47848a40a886889e Mon Sep 17 00:00:00 2001 From: ronny abraham Date: Fri, 7 Jul 2023 15:25:00 +0300 Subject: [PATCH] got rid of placeholder for check_version def. also fixed up missing parenthesis by a print function --- modules/configuration_setup.py | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/modules/configuration_setup.py b/modules/configuration_setup.py index be3aef6..e0c24ae 100644 --- a/modules/configuration_setup.py +++ b/modules/configuration_setup.py @@ -7,10 +7,6 @@ import sys import utils -def check_version(section): - pass - - def check_is_conf(section, handle_error=False): """confirms that the configuration section name passed is a legit one @@ -25,17 +21,17 @@ def check_is_conf(section, handle_error=False): return True else: if handle_error: - print """ + print(""" Error. maintenance.exists_dir_sub takes a 'section' parameter value. '%s' is not a valid parameter value. -Valid options include:""" % section +Valid options include:""" % section) for key in configuration.templates.keys(): print(" %s" % key) - print """ + print(""" Please run the command again, but this time enter a valid section value. - """ + """) sys.exit()