mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Merge pull request #33486 from jtand/2015.5
Add docstring examples to glance.py [2015.5]
This commit is contained in:
commit
6f7fda0354
2 changed files with 13 additions and 0 deletions
|
@ -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
|
||||
|
|
|
@ -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',
|
||||
|
|
Loading…
Add table
Reference in a new issue