diff options
author | Justin chi <chigang@huawei.com> | 2015-10-12 05:32:17 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@172.30.200.206> | 2015-10-12 05:32:17 +0000 |
commit | 2cbacbc060805b446769def612253798f3b7fb03 (patch) | |
tree | 1619e8bde3ff9f988b7f7a7bd9ce7a8a5f2cf867 /deploy/client.py | |
parent | d27248783e7f49f4edb3a584ffd06c56c61b32c5 (diff) | |
parent | 80c770bb093ad2af54171de1a2c4630536d4daf0 (diff) |
Merge "bugfix: libvirt_type should be kvm when host is barebetal mode"
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 |