summaryrefslogtreecommitdiffstats
path: root/Testcases/config.16
blob: bdbd1e1a9ca1737ef503695166e11cc3bbcc2f10 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/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()