fix the runner.run to have its own full_return that defautls to False so anything currently using runner.run will work the same as before. this is what i should have done from the start.

This commit is contained in:
Thomas Phipps 2023-06-26 19:11:54 +00:00 committed by Pedro Algarvio
parent ff53f1d3f6
commit 04c24893e4

View file

@ -191,12 +191,6 @@ class ShellCase(TestCase, AdaptedConfigurationTestCaseMixin, ScriptPathMixin):
with RedirectStdStreams():
runner = salt.runner.Runner(opts)
ret["return"] = runner.run()
if (
isinstance(ret["return"], dict)
and "return" in ret["return"]
and "retcode" not in ret["return"]
):
ret["return"] = ret["return"]["return"]
try:
ret["jid"] = runner.jid
except AttributeError: