1) convert_config_to_shell() takes 1 argument in definition, 2 was given: config = convert_config_to_shell(config_text, get_slave_type())
Looks like you have mixed up 2 functions, please move get_slave_type() form first to second:
config = convert_config_to_shell(config_text, get_slave_type())
try: validate_config(config)
2) global name 'cfg' is not defined
for l in cfg.split("\n"):
You should use config_text.split("\n") instead
At least following 2 errors were found:
1) convert_ config_ to_shell( ) takes 1 argument in definition, 2 was given: config = convert_ config_ to_shell( config_ text, get_slave_type())
Looks like you have mixed up 2 functions, please move get_slave_type() form first to second: config_ to_shell( config_ text, get_slave_type())
validate_ config( config)
config = convert_
try:
2) global name 'cfg' is not defined text.split( "\n") instead
for l in cfg.split("\n"):
You should use config_