diff options
author | baigk <baiguoku@huawei.com> | 2015-10-09 18:32:31 +0800 |
---|---|---|
committer | baigk <baiguoku@huawei.com> | 2015-10-10 10:17:48 +0800 |
commit | 80c770bb093ad2af54171de1a2c4630536d4daf0 (patch) | |
tree | 693a483f4b4f02eb7dcd908691e2db67f7b6003c /deploy/client.py | |
parent | 00aaaac786bcec0d2de7c14c4f3c5a89ba2553f5 (diff) |
bugfix: libvirt_type should be kvm when host is barebetal mode
JIRA: COMPASS-81
Change-Id: Iba3cb182a3e461ab89eb40fdba7800b8b2a1fc3e
Signed-off-by: baigk <baiguoku@huawei.com>
Diffstat (limited to 'deploy/client.py')
-rw-r--r-- | deploy/client.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/deploy/client.py b/deploy/client.py index 33d987ee..84041af5 100644 --- a/deploy/client.py +++ b/deploy/client.py @@ -216,6 +216,9 @@ opts = [ cfg.StrOpt('repo_name', help='repo name', default=''), + cfg.StrOpt('deploy_type', + help='deploy type', + default='virtual'), ] CONF.register_cli_opts(opts) @@ -418,6 +421,7 @@ class CompassClient(object): https_proxy = CONF.https_proxy local_repo_url = CONF.local_repo_url repo_name = CONF.repo_name + deploy_type = CONF.deploy_type if not https_proxy and http_proxy: https_proxy = http_proxy @@ -479,6 +483,8 @@ class CompassClient(object): general_config['local_repo'] = local_repo_url if repo_name: general_config['repo_name'] = repo_name + if deploy_type: + general_config['deploy_type'] = deploy_type os_config["general"] = general_config |