summaryrefslogtreecommitdiffstats
path: root/tosca2heat/heat-translator/translator/hot/syntax/hot_resource.py
diff options
context:
space:
mode:
authorshangxdy <shang.xiaodong@zte.com.cn>2016-09-09 01:47:35 +0800
committerxiaodong shang <shang.xiaodong@zte.com.cn>2016-09-12 14:51:48 +0000
commit708b2e982476a55e7f9b8b3e2f0cc0daa5dc78a5 (patch)
treebadf20f788aa59735b7b47b79aa4a16b5f2b3f72 /tosca2heat/heat-translator/translator/hot/syntax/hot_resource.py
parentb16327d5e53a873d1b4bd473015dd201d167ae5e (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> (cherry picked from commit eaecb94d4361de61a4f276175b8c8099f37a4628)
Diffstat (limited to 'tosca2heat/heat-translator/translator/hot/syntax/hot_resource.py')
-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,