From ee2ae0ea8af5facdea48f4dfc33e50fedf689245 Mon Sep 17 00:00:00 2001 From: Justin Anderson Date: Tue, 24 May 2016 15:16:07 -0600 Subject: [PATCH] Added docstring examples to glance.image_schema and schema_get --- salt/modules/glance.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/salt/modules/glance.py b/salt/modules/glance.py index 185b0bfe8f..105ab17645 100644 --- a/salt/modules/glance.py +++ b/salt/modules/glance.py @@ -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