Skip to content

Commit

Permalink
fixup! Add state.sls_exists to ssh client
Browse files Browse the repository at this point in the history
  • Loading branch information
shtrom committed Sep 16, 2024
1 parent 834979e commit e80cce5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions salt/client/ssh/wrapper/state.py
Original file line number Diff line number Diff line change
Expand Up @@ -1112,14 +1112,15 @@ def show_low_sls(mods, saltenv="base", test=None, **kwargs):
_cleanup_slsmod_low_data(ret)
return ret


def sls_exists(mods, test=None, queue=None, **kwargs):
"""
Tests for the existence the of a specific SLS or list of SLS files on the
master. Similar to :py:func:`state.show_sls <salt.modules.state.show_sls>`,
rather than returning state details, returns True or False. The default
environment is ``base``, use ``saltenv`` to specify a different environment.
.. versionadded:: 3007.1.1
.. versionadded:: 3007.1
saltenv
Specify a salt fileserver environment from which to look for the SLS files
Expand All @@ -1134,7 +1135,6 @@ def sls_exists(mods, test=None, queue=None, **kwargs):
return isinstance(show_sls(mods, test=test, queue=queue, **kwargs), dict)



def show_top(**kwargs):
"""
Return the top data that the minion will use for a highstate
Expand Down

0 comments on commit e80cce5

Please sign in to comment.