summaryrefslogtreecommitdiffstats
path: root/tosca2heat/heat-translator/translator/hot/syntax
diff options
context:
space:
mode:
authorshangxdy <shang.xiaodong@zte.com.cn>2016-09-09 01:47:35 +0800
committershangxdy <shang.xiaodong@zte.com.cn>2016-09-09 01:54:31 +0800
commiteaecb94d4361de61a4f276175b8c8099f37a4628 (patch)
tree4874dac79be219d94fa2b3e663e85d5c033e8ac4 /tosca2heat/heat-translator/translator/hot/syntax
parent23f466831a8284433609e9f770737830d0b448bf (diff)
Add signal_transport in software deployment resource
According to hot syntax, when deploy software, it shall include signal_transport property, or will use default value NO_SIGNAL, but the openstack environment configuration may not support the default value. so the signal_transport shall be specified. JIRA:PARSER-104 Change-Id: Ifd01cd55c7daf538efb32f44a8d278cf3058af05 Signed-off-by: shangxdy <shang.xiaodong@zte.com.cn>
Diffstat (limited to 'tosca2heat/heat-translator/translator/hot/syntax')
-rw-r--r--tosca2heat/heat-translator/translator/hot/syntax/hot_resource.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/tosca2heat/heat-translator/translator/hot/syntax/hot_resource.py b/tosca2heat/heat-translator/translator/hot/syntax/hot_resource.py
index 8994c63..7b83906 100644
--- a/tosca2heat/heat-translator/translator/hot/syntax/hot_resource.py
+++ b/tosca2heat/heat-translator/translator/hot/syntax/hot_resource.py
@@ -154,12 +154,14 @@ class HotResource(object):
self.type = 'OS::Heat::SoftwareDeployment'
self.properties = {'config': {'get_resource': config_name},
'server': {'get_resource':
- hosting_on_server}}
+ hosting_on_server},
+ 'signal_transport': 'HEAT_SIGNAL'}
deploy_lookup[operation] = self
else:
sd_config = {'config': {'get_resource': config_name},
'server': {'get_resource':
- hosting_on_server}}
+ hosting_on_server},
+ 'signal_transport': 'HEAT_SIGNAL'}
deploy_resource = \
HotResource(self.nodetemplate,
deploy_name,
@@ -221,7 +223,8 @@ class HotResource(object):
deploy_name = tosca_source.name + '_' + tosca_target.name + \
'_connect_deploy'
sd_config = {'config': {'get_resource': self.name},
- 'server': {'get_resource': hosting_server.name}}
+ 'server': {'get_resource': hosting_server.name},
+ 'signal_transport': 'HEAT_SIGNAL'}
deploy_resource = \
HotResource(self.nodetemplate,
deploy_name,