From 03400ef45b3ab95c8b2b339fc7501a3ea1045743 Mon Sep 17 00:00:00 2001 From: Justin Findlay Date: Wed, 7 Oct 2015 11:14:56 -0600 Subject: [PATCH] fix virtual fcn return doc indentation Fixes #27724. --- doc/ref/modules/index.rst | 29 +++++++++++++++-------------- 1 file changed, 15 insertions(+), 14 deletions(-) diff --git a/doc/ref/modules/index.rst b/doc/ref/modules/index.rst index ec1b3714af..c3a864e9eb 100644 --- a/doc/ref/modules/index.rst +++ b/doc/ref/modules/index.rst @@ -279,13 +279,13 @@ the case when the dependency is unavailable. def __virtual__(): - ''' - only load cheese if enzymes are available - ''' - if HAS_ENZYMES: - return 'cheese' - else: - return (False, 'The cheese execution module cannot be loaded: enzymes unavailable.') + ''' + only load cheese if enzymes are available + ''' + if HAS_ENZYMES: + return 'cheese' + else: + return (False, 'The cheese execution module cannot be loaded: enzymes unavailable.') .. code-block:: python @@ -294,13 +294,14 @@ the case when the dependency is unavailable. ''' def __virtual__(): - ''' - only load cheese if enzymes are available - ''' - if 'cheese.slice' in __salt__: - return 'cheese' - else: - return (False, 'The cheese state module cannot be loaded: enzymes unavailable.') + ''' + only load cheese if enzymes are available + ''' + # predicate loading of the cheese state on the corresponding execution module + if 'cheese.slice' in __salt__: + return 'cheese' + else: + return (False, 'The cheese state module cannot be loaded: enzymes unavailable.') Documentation