summaryrefslogtreecommitdiff
path: root/doc/source/ext/resources.py
diff options
context:
space:
mode:
authorPeter Razumovsky <prazumovsky@mirantis.com>2015-08-13 19:33:18 +0300
committerPeter Razumovsky <prazumovsky@mirantis.com>2015-08-14 12:00:28 +0300
commit361f5acb3a1cedae7a31ba1069fd9fc0658d1d37 (patch)
treee4ed5c487777759814e62538ea4a24804368b64e /doc/source/ext/resources.py
parent9f8e1e971d0d28d8bb9e4a77bce002f3b97b3bbe (diff)
downloadheat-361f5acb3a1cedae7a31ba1069fd9fc0658d1d37.tar.gz
Add base_attributes_schema to documentation
Currently base_attributes_schema omitted in docs, so there's no chance to learn about base attributes. This patch adds base_attributes_schema to docs and fixes description of "show" base attribute. Change-Id: Id382e39401d368367f1813e7f9e4508d4dffef72 Closes-bug: #1484142
Diffstat (limited to 'doc/source/ext/resources.py')
-rw-r--r--doc/source/ext/resources.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/doc/source/ext/resources.py b/doc/source/ext/resources.py
index f09901bce..d23c08ca3 100644
--- a/doc/source/ext/resources.py
+++ b/doc/source/ext/resources.py
@@ -75,6 +75,12 @@ class ResourcePages(compat.Directive):
self.resource_class.properties_schema)
self.attrs_schemata = attributes.schemata(
self.resource_class.attributes_schema)
+ # NOTE(prazumovsky): Adding base_attributes_schema dict to
+ # Resource class should means adding new attributes from this
+ # dict to documentation of each resource, else there is no
+ # chance to learn about base attributes.
+ self.attrs_schemata.update(
+ self.resource_class.base_attributes_schema)
self.update_policy_schemata = properties.schemata(
self.resource_class.update_policy_schema)