Merge pull request #33486 from jtand/2015.5

Add docstring examples to glance.py [2015.5]
This commit is contained in:
Mike Place 2016-05-25 10:21:22 -07:00
commit 6f7fda0354
2 changed files with 13 additions and 0 deletions

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

View file

@ -62,6 +62,7 @@ class SysModuleTest(integration.ModuleCase):
'runtests_decorators.depends_will_fallback',
'runtests_decorators.missing_depends',
'runtests_decorators.missing_depends_will_fallback',
'swift.head',
'yumpkg.expand_repo_def',
'yumpkg5.expand_repo_def',
'container_resource.run',