diff options
author | shangxdy <shang.xiaodong@zte.com.cn> | 2017-02-27 01:19:10 +0800 |
---|---|---|
committer | shangxdy <shang.xiaodong@zte.com.cn> | 2017-02-27 01:27:13 +0800 |
commit | 99368c87bb2e4a93905759dcfc36046243062fd7 (patch) | |
tree | 530a56817308de8926c8080f0fa1fb28bf9d3ce8 /tosca2heat/heat-translator/translator/hot | |
parent | 5a918c30a6c46605c616c2ffba1737ef9ea3ee3a (diff) |
Add ip output in compute node
After sync the latest heat-translator code from upstream, there is not
ip output in compute node, it's necessary to add.
JIRA:PARSER-121
Change-Id: Idb0126f9d2bcb6100be6083e2a661cc1cdbe0f27
Signed-off-by: shangxdy <shang.xiaodong@zte.com.cn>
Diffstat (limited to 'tosca2heat/heat-translator/translator/hot')
-rw-r--r-- | tosca2heat/heat-translator/translator/hot/tests/test_translate_outputs.py | 4 | ||||
-rw-r--r-- | tosca2heat/heat-translator/translator/hot/tosca/tosca_compute.py | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/tosca2heat/heat-translator/translator/hot/tests/test_translate_outputs.py b/tosca2heat/heat-translator/translator/hot/tests/test_translate_outputs.py index 955150e..12ea355 100644 --- a/tosca2heat/heat-translator/translator/hot/tests/test_translate_outputs.py +++ b/tosca2heat/heat-translator/translator/hot/tests/test_translate_outputs.py @@ -33,12 +33,12 @@ class ToscaTemplateOutputTest(TestCase): 'server, http://<IP>:3000', 'value': {'get_attr': - ['app_server', 'networks', 'private', 0]}}, + ['app_server', 'first_address']}}, 'mongodb_url': {'description': 'URL for the mongodb server.', 'value': {'get_attr': - ['mongo_server', 'networks', 'private', 0]}}} + ['mongo_server', 'first_address']}}} hot_translation_dict = \ toscaparser.utils.yamlparser.simple_parse(hot_translation) diff --git a/tosca2heat/heat-translator/translator/hot/tosca/tosca_compute.py b/tosca2heat/heat-translator/translator/hot/tosca/tosca_compute.py index 85f312d..5f6b751 100644 --- a/tosca2heat/heat-translator/translator/hot/tosca/tosca_compute.py +++ b/tosca2heat/heat-translator/translator/hot/tosca/tosca_compute.py @@ -211,7 +211,7 @@ class ToscaCompute(HotResource): attriute.')) if attribute == 'private_address' or \ attribute == 'public_address': - attr['get_attr'] = [self.name, 'networks', 'private', 0] + attr['get_attr'] = [self.name, 'first_address'] return attr |