From 49f206b94c3e65765d5fc5b4a685279fcecbd600 Mon Sep 17 00:00:00 2001 From: Tomas Kral Date: Thu, 30 Jan 2014 14:23:34 +0100 Subject: [PATCH] docs: indentation fix and missing id declaration --- salt/states/cmd.py | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/salt/states/cmd.py b/salt/states/cmd.py index 4ba61c371c..d09819a604 100644 --- a/salt/states/cmd.py +++ b/salt/states/cmd.py @@ -141,7 +141,7 @@ one must convert it to a list. Example: .. code-block:: yaml printenv: - cmd.run: + cmd.run: - env: {% for key, value in pillar['keys'].iteritems() %} - '{{ key }}': '{{ value }}' @@ -499,13 +499,14 @@ def run(name, .. code-block:: yaml - cmd.run: - - name: /usr/bin/python /usr/local/sbin/get-pip.py - - unless: which pip - - require: - - pkg: python - - file: /usr/local/sbin/get-pip.py - - reload_modules: True + getpip: + cmd.run: + - name: /usr/bin/python /usr/local/sbin/get-pip.py + - unless: which pip + - require: + - pkg: python + - file: /usr/local/sbin/get-pip.py + - reload_modules: True ''' ### NOTE: The keyword arguments in **kwargs are ignored in this state, but