diff options
Diffstat (limited to 'heatclient/v1')
-rw-r--r-- | heatclient/v1/resource_types.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/heatclient/v1/resource_types.py b/heatclient/v1/resource_types.py index 6f307ff..b4039d1 100644 --- a/heatclient/v1/resource_types.py +++ b/heatclient/v1/resource_types.py @@ -62,15 +62,17 @@ class ResourceTypeManager(base.BaseManager): return self._list(url, self.KEY) - def get(self, resource_type): + def get(self, resource_type, with_description=False): """Get the details for a specific resource_type. :param resource_type: name of the resource type to get the details for + :param with_description: return result with description or not """ url_str = '/%s/%s' % ( self.KEY, parse.quote(encodeutils.safe_encode(resource_type), '')) - resp = self.client.get(url_str) + resp = self.client.get(url_str, + params={'with_description': with_description}) body = utils.get_response_body(resp) return body |