diff --git a/.pylintrc b/.pylintrc index 5404f6522d0..1d8f8e51270 100644 --- a/.pylintrc +++ b/.pylintrc @@ -452,6 +452,7 @@ disable=R, line-too-long, locally-disabled, logging-format-interpolation, + logging-fstring-interpolation, missing-docstring, no-member, protected-access, diff --git a/salt/utils/parsers.py b/salt/utils/parsers.py index 304a2c4ec40..97b3e4f7667 100644 --- a/salt/utils/parsers.py +++ b/salt/utils/parsers.py @@ -3094,6 +3094,7 @@ class SaltSSHOptionParser( ] def _mixin_setup(self): + # pylint: disable=W0106 self.add_option( "-r", "--raw", diff --git a/tests/pytests/integration/ssh/test_deploy.py b/tests/pytests/integration/ssh/test_deploy.py index 2ca47d53427..524a2bcc26f 100644 --- a/tests/pytests/integration/ssh/test_deploy.py +++ b/tests/pytests/integration/ssh/test_deploy.py @@ -172,9 +172,19 @@ def test_relenv_dir(salt_ssh_cli): assert ret.returncode == 0 thin_dir = pathlib.Path(ret.data) assert thin_dir.is_dir() + assert thin_dir assert thin_dir.joinpath("salt-call").exists() +def test_relenv_ping(salt_ssh_cli): + """ + Test a simple ping + """ + ret = salt_ssh_cli.run("--relenv", "test.ping") + assert ret.returncode == 0 + assert ret.data is True.joinpath("salt-call").exists() + + def test_wipe(salt_ssh_cli): """ Ensure --wipe is respected by the state module wrapper