#!/usr/bin/python import sys import os from config_shell import * default_client_args = [ ('--username', 'admin'), ('--password', 'openstack'), ('--region', 'RegionOne'), ('--tenant', 'admin'), ('--api-server', '172.16.50.199')] 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()