summaryrefslogtreecommitdiff
path: root/heat/rpc/client.py
diff options
context:
space:
mode:
authorhuangtianhua <huangtianhua@huawei.com>2015-04-14 11:52:48 +0800
committerhuangtianhua <huangtianhua@huawei.com>2015-04-28 16:14:52 +0800
commitb44df7a1dbb9131b075fd18082882bb906941fb5 (patch)
tree371c0cce2008335d57830474297631867d73e99e /heat/rpc/client.py
parentd7cadf02c985f061d3d9237b697d23bbb8d47afd (diff)
downloadheat-b44df7a1dbb9131b075fd18082882bb906941fb5.tar.gz
Support to generate hot template based on resource type
Currently heat supports to create CFN template based on the given resource type. And this patch adds an option to allow user to specify template type to generate(support HOT template at the same time). blueprint support-to-generate-hot-templates Change-Id: I55cfb9b0f87e638350f2f6367fb399d772fff7e1
Diffstat (limited to 'heat/rpc/client.py')
-rw-r--r--heat/rpc/client.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/heat/rpc/client.py b/heat/rpc/client.py
index ecfdadc90..68b031577 100644
--- a/heat/rpc/client.py
+++ b/heat/rpc/client.py
@@ -29,6 +29,7 @@ class EngineClient(object):
1.0 - Initial version.
1.1 - Add support_status argument to list_resource_types()
1.4 - Add support for service list
+ 1.9 - Add template_type option to generate_template()
'''
BASE_RPC_API_VERSION = '1.0'
@@ -334,15 +335,18 @@ class EngineClient(object):
return self.call(ctxt, self.make_msg('resource_schema',
type_name=type_name))
- def generate_template(self, ctxt, type_name):
+ def generate_template(self, ctxt, type_name, template_type='cfn'):
"""
Generate a template based on the specified type.
:param ctxt: RPC context.
:param type_name: The resource type name to generate a template for.
+ :param template_type: the template type to generate, cfn or hot.
"""
return self.call(ctxt, self.make_msg('generate_template',
- type_name=type_name))
+ type_name=type_name,
+ template_type=template_type),
+ version='1.9')
def list_events(self, ctxt, stack_identity, filters=None, limit=None,
marker=None, sort_keys=None, sort_dir=None,):