From e80cce50e193e276c86af959ee236b4502ba56d6 Mon Sep 17 00:00:00 2001 From: Olivier Mehani Date: Mon, 16 Sep 2024 21:21:47 +1000 Subject: [PATCH] fixup! Add state.sls_exists to ssh client --- salt/client/ssh/wrapper/state.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/salt/client/ssh/wrapper/state.py b/salt/client/ssh/wrapper/state.py index f086e22d1aed..cbe42463a413 100644 --- a/salt/client/ssh/wrapper/state.py +++ b/salt/client/ssh/wrapper/state.py @@ -1112,6 +1112,7 @@ 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 @@ -1119,7 +1120,7 @@ def sls_exists(mods, test=None, queue=None, **kwargs): 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 @@ -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