Added docstring examples to glance.image_schema and schema_get

This commit is contained in:
Justin Anderson 2016-05-24 15:16:07 -06:00
parent 59e90064e6
commit ee2ae0ea8a

View File

@ -296,6 +296,12 @@ def image_schema(profile=None):
'''
Returns names and descriptions of the schema "image"'s
properties for this profile's instance of glance
CLI Example:
.. code-block:: bash
salt '*' glance.image_schema
'''
return schema_get('image', profile)
@ -307,6 +313,12 @@ def schema_get(name, profile=None):
- images
- member
- members
CLI Example:
.. code-block:: bash
salt '*' glance.schema_get name=f16-jeos
'''
g_client = _auth(profile)
pformat = pprint.PrettyPrinter(indent=4).pformat