Add clarification on expr_form usage and future deprecation (#37964)

This commit is contained in:
Erik Johnson 2016-11-29 14:45:11 -06:00 committed by Nicole Thomas
parent 1001987f64
commit 7f269bc7f9
3 changed files with 15 additions and 0 deletions

View file

@ -124,3 +124,7 @@ To match minions using other matchers, use ``expr_form``:
.. code-block:: bash
# salt-call publish.publish 'webserv* and not G@os:Ubuntu' test.ping expr_form='compound'
.. note::
The expr_form argument will be renamed to ``tgt_type`` in the Nitrogen
release of Salt.

View file

@ -179,3 +179,7 @@ to add them to the pool of load balanced servers.
{% endfor %}
<...file contents snipped...>
.. note::
The expr_form argument will be renamed to ``tgt_type`` in the Nitrogen
release of Salt.

View file

@ -376,6 +376,13 @@ Use the ``expr_form`` argument to specify a matcher:
- arg:
- rm -rf /tmp/*
.. note::
An easy mistake to make here is to use ``tgt_type`` instead of
``expr_form``, since the job cache and events all refer to the targeting
method as ``tgt_type``. As of the Nitrogen release of Salt, ``expr_form``
will be deprecated in favor of using ``tgt_type``, to help with this
confusion.
Any other parameters in the :py:meth:`LocalClient().cmd()
<salt.client.LocalClient.cmd>` method can be specified as well.