in moneo.py [0:0]
def check_deploy_shutdown(args, parser):
'''
Checks if the necessary arguments are provided for
deploy and shutdwon
'''
if (not os.path.isfile(args.host_file)):
print(args.host_file + " does not exist. Please provide a host file. i.e. host.ini.\n")
parser.print_help()
exit(1)
else:
# ensure we have the absolute path
args.host_file = os.path.abspath(args.host_file)
if args.job_id:
print(
"Job Id cannot be specified during deployment and shutdown. Ignoring Job Id.\n")
choices = ['manager', 'workers', 'full']
if (args.type not in choices):
print('Deployment/shutdown type not recognized or entered. Defaulted to the full option.\n')
args.type = 'full'