diff options
author | Jenkins <jenkins@review.openstack.org> | 2016-05-30 07:47:15 +0000 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2016-05-30 07:47:15 +0000 |
commit | e95df61c64824be8747a1f130bce6febe03b921b (patch) | |
tree | 744d78a7ad414c6cd6fbe5e8786dce9a4db67818 /heatclient/v1 | |
parent | b8407bd9411106f8ca3e370df013530c473bb3e3 (diff) | |
parent | 52cb12d86e8d1a7ae3422d02f567c3387eb14809 (diff) | |
download | python-heatclient-e95df61c64824be8747a1f130bce6febe03b921b.tar.gz |
Merge "osc resource-type-show description option"
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 |