Fix warning on missing ansible hosts file 65/34565/1
authorYujun Zhang <zhang.yujunz@zte.com.cn>
Wed, 10 May 2017 16:06:46 +0000 (00:06 +0800)
committerYujun Zhang <zhang.yujunz@zte.com.cn>
Wed, 10 May 2017 16:06:46 +0000 (00:06 +0800)
Change-Id: I9d6fdb7a55e8528ec1cd29338bbb24e6ca92d585
Signed-off-by: Yujun Zhang <zhang.yujunz@zte.com.cn>
qtip/cli/commands/cmd_workspace.py

index f6f9fc5..a5b6828 100644 (file)
@@ -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,