Commit 028332da by Kevin Falcone

These are no longer 'new_services'

This dates from when our code was if lms/cms, else xque, else
new_service.  Now that lms/cms are lumped into new_services, name it
services.
parent 8db4c3a6
......@@ -217,7 +217,7 @@ if __name__ == '__main__':
if 'Migrating' in output:
raise Exception("Migrations have not been run for {}".format(service))
else:
new_services = {
services = {
"lms": {'python': args.edxapp_python, 'env_file': args.edxapp_env, 'code_dir': args.edxapp_code_dir},
"cms": {'python': args.edxapp_python, 'env_file': args.edxapp_env, 'code_dir': args.edxapp_code_dir},
"ecommerce": {'python': args.ecommerce_python, 'env_file': args.ecommerce_env, 'code_dir': args.ecommerce_code_dir},
......@@ -226,8 +226,8 @@ if __name__ == '__main__':
"analytics_api": {'python': args.analytics_api_python, 'env_file': args.analytics_api_env, 'code_dir': args.analytics_api_code_dir}
}
if service in new_services and all(arg!=None for arg in new_services[service].values()) and service in MIGRATION_COMMANDS:
serv_vars = new_services[service]
if service in services and all(arg!=None for arg in services[service].values()) and service in MIGRATION_COMMANDS:
serv_vars = services[service]
cmd = MIGRATION_COMMANDS[service].format(**serv_vars)
if os.path.exists(serv_vars['code_dir']):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment