Merge pull request #10056 from kadel/doc-state-cmd-small-fixes

docs: indentation fix and missing id declaration
This commit is contained in:
Joseph Hall 2014-01-30 07:08:18 -08:00
commit 8a53c925ea

View File

@ -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