diff options
Diffstat (limited to 'qtip')
-rw-r--r-- | qtip/cli/commands/cmd_workspace.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/qtip/cli/commands/cmd_workspace.py b/qtip/cli/commands/cmd_workspace.py index 42d4e2d5..a5b6828f 100644 --- a/qtip/cli/commands/cmd_workspace.py +++ b/qtip/cli/commands/cmd_workspace.py @@ -22,8 +22,8 @@ def cli(): @cli.command("create", help="Create QTIP workspace") @click.option('--pod', default='unknown', help='Name of pod under test') -@click.option('--installer', help='OPNFV installer') -@click.option('--master-host', help='Installer hostname') +@click.option('--installer', help='OPNFV installer', required=True) +@click.option('--master-host', help='Installer hostname', required=True) @click.option('--scenario', default='unknown', help='OPNFV scenario') @click.argument('name') def create(pod, installer, master_host, scenario, name): @@ -37,6 +37,7 @@ def create(pod, installer, master_host, scenario, name): 'workspace': name } os.system("ANSIBLE_ROLES_PATH={qtip_package}/{roles_path} ansible-playbook" + " -i {qtip_package}/{roles_path}/qtip-workspace/hosts" " {qtip_package}/{roles_path}/qtip-workspace/create.yml" " --extra-vars '{extra_vars}'" "".format(qtip_package=utils.QTIP_PACKAGE, |