summaryrefslogtreecommitdiffstats
path: root/deploy/prepare
diff options
context:
space:
mode:
authorSerenaFeng <feng.xiaowei@zte.com.cn>2017-03-24 14:51:32 +0800
committerSerenaFeng <feng.xiaowei@zte.com.cn>2017-03-24 14:51:32 +0800
commit2a710a61e3b560c2d39cb759f5d9ac1da21d34c4 (patch)
tree92c6fcb5f764cf97f618cee79cc232de433a236a /deploy/prepare
parentbbef0fa1fb89a90a98e66ece5b19852bcf3f2332 (diff)
unify the way of obtaining network configuration
Change-Id: Idd960d7faf0f24ae8caac13562858ccaa1c67f7b Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
Diffstat (limited to 'deploy/prepare')
-rw-r--r--deploy/prepare/execute.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/deploy/prepare/execute.py b/deploy/prepare/execute.py
index 30319b2e..1e88755c 100644
--- a/deploy/prepare/execute.py
+++ b/deploy/prepare/execute.py
@@ -40,9 +40,9 @@ def _config_service(service, subs):
@_config_service('nova', ['api'])
def _set_default_floating_pool(network_file):
- xnet = NetworkConfig(network_file=network_file).external_network
+ xnet = NetworkConfig(network_file=network_file).ext_network_name
return '[DEFAULT]\n' \
- 'default_floating_pool = {}\n'.format(xnet['network_name'])
+ 'default_floating_pool = {}\n'.format(xnet)
@_config_service('heat', ['api', 'engine'])