diff --git a/modules/maintenance.py b/modules/maintenance.py index 17bbbd1..4cc655d 100644 --- a/modules/maintenance.py +++ b/modules/maintenance.py @@ -31,6 +31,10 @@ def command(program=None, cmd=None, extra_param=None): configuration_program = getattr(configuration.maintenance, program) + # debugging + # print("configuration_program: %s" % + # configuration_program.commands.keys()) + if cmd is None: print("Error: You have not given a legitimate command") print("permissable commands : %s" % @@ -45,6 +49,9 @@ def command(program=None, cmd=None, extra_param=None): _command = getattr(configuration_program.commands, cmd) + # debugging + # print("_command: %s" % _command) + if extra_param is not None: _command = "{command} {param}".format( command=_command, param=extra_param) @@ -237,7 +244,8 @@ def load_configuration(name, branch): elif name == "layout": file_path = _get_configuration_path('layout', branch) - configuration_file = yaml.load(open(file_path, 'r'), Loader=yaml.FullLoader) + configuration_file = yaml.load( + open(file_path, 'r'), Loader=yaml.FullLoader) return configuration_file