#!/usr/bin/python import sys import os from config_shell import * default_client_args = [ ('--username', 'admin'), ('--password', os.environ["OS_PASSWORD"]), ('--region', 'RegionOne'), ('--tenant', os.environ["OS_TENANT_NAME"]), ('--api-server', '10.10.11.16')] if __name__ == '__main__': for arg in default_client_args: if not arg[0] in sys.argv: sys.argv.insert(1, arg[0]) sys.argv.insert(2, arg[1]) ConfigShell().main()