Set installer and master-host as required options 63/34563/1
authorYujun Zhang <zhang.yujunz@zte.com.cn>
Wed, 10 May 2017 16:05:12 +0000 (00:05 +0800)
committerYujun Zhang <zhang.yujunz@zte.com.cn>
Wed, 10 May 2017 16:05:12 +0000 (00:05 +0800)
missing these options will cause failure in workspace creation

Change-Id: I701b080d7f6b2deb7f71e76da322d26b20cd3b42
Signed-off-by: Yujun Zhang <zhang.yujunz@zte.com.cn>
qtip/cli/commands/cmd_workspace.py

index 42d4e2d..f6f9fc5 100644 (file)
@@ -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):