got rid of placeholder for check_version def. also fixed up missing parenthesis by a print function
This commit is contained in:
parent
1c5599bd61
commit
7eb5c53fc7
1 changed files with 4 additions and 8 deletions
|
|
@ -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()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue