summaryrefslogtreecommitdiffstats
path: root/tosca2heat/heat-translator/translator/hot/tosca/tosca_compute.py
diff options
context:
space:
mode:
authorshangxdy <shang.xiaodong@zte.com.cn>2016-09-22 15:38:17 +0800
committershangxdy <shang.xiaodong@zte.com.cn>2016-09-23 11:25:25 +0800
commit86f92e7761cb6a06d96fbeee984432ce90f8af65 (patch)
treed7cba7181478ad408ff95c0d3af6dd65ad1217cd /tosca2heat/heat-translator/translator/hot/tosca/tosca_compute.py
parentc5df8adbaf4eaa0005c372b242652cc6542df7c6 (diff)
Add ip output in compute translation
As a template designer, I want to visit a server which is depleted by parser, So it's necessary to make the ip exposed. JIRA:PARSER-109 Change-Id: Idef0605d23df6af38b86e7a393a151b34828e511 Signed-off-by: shangxdy <shang.xiaodong@zte.com.cn>
Diffstat (limited to 'tosca2heat/heat-translator/translator/hot/tosca/tosca_compute.py')
-rw-r--r--tosca2heat/heat-translator/translator/hot/tosca/tosca_compute.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tosca2heat/heat-translator/translator/hot/tosca/tosca_compute.py b/tosca2heat/heat-translator/translator/hot/tosca/tosca_compute.py
index 8a959d1..b685d6a 100644
--- a/tosca2heat/heat-translator/translator/hot/tosca/tosca_compute.py
+++ b/tosca2heat/heat-translator/translator/hot/tosca/tosca_compute.py
@@ -324,7 +324,7 @@ class ToscaCompute(HotResource):
attriute.'))
if attribute == 'private_address' or \
attribute == 'public_address':
- attr['get_attr'] = [self.name, 'networks']
+ attr['get_attr'] = [self.name, 'first_address']
return attr