diff --git a/salt/states/cmd.py b/salt/states/cmd.py index 4ba61c371c05..d09819a604c6 100644 --- a/salt/states/cmd.py +++ b/salt/states/cmd.py @@ -141,7 +141,7 @@ .. 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