summaryrefslogtreecommitdiff
path: root/glanceclient/v2/schemas.py
diff options
context:
space:
mode:
Diffstat (limited to 'glanceclient/v2/schemas.py')
-rw-r--r--glanceclient/v2/schemas.py9
1 files changed, 4 insertions, 5 deletions
diff --git a/glanceclient/v2/schemas.py b/glanceclient/v2/schemas.py
index 9ba72c3..8247d31 100644
--- a/glanceclient/v2/schemas.py
+++ b/glanceclient/v2/schemas.py
@@ -71,7 +71,7 @@ class SchemaProperty(object):
def translate_schema_properties(schema_properties):
"""Parse the properties dictionary of a schema document.
- :returns list of SchemaProperty objects
+ :returns: list of SchemaProperty objects
"""
properties = []
for (name, prop) in schema_properties.items():
@@ -87,11 +87,10 @@ class Schema(object):
self.properties = translate_schema_properties(raw_properties)
def is_core_property(self, property_name):
- """
+ """Check if a property with a given name is known to the schema.
- Checks if a property with a given name is known to the schema,
- i.e. is either a base property or a custom one registered in
- schema-image.json file
+ Determines if it is either a base property or a custom one
+ registered in schema-image.json file
:param property_name: name of the property
:returns: True if the property is known, False otherwise