cmd.run state doesn't print stdout's last character when stateful=True. #55918
Labels
Bug
broken, incorrect, or confusing behavior
Confirmed
Salt engineer has confirmed bug/feature - often including a MCVE
severity-low
4th level, cosemtic problems, work around exists
Milestone
Description of Issue
When executing the state
cmd.run
on a minion withstateful
set toTrue
and the command returns key/value pairs (not JSON), then the last character printed in theChanges:
section is omitted.Setup
Ran on
debian10
with2019.2.3+ds-1
salt package, but I've verified it in various previous salt versions (eg.2018.3.1
and2018.3.2
) on various systems (eg.debian9
andSmartOS 18.4
,19.4
,17.2
).Steps to Reproduce Issue
Create the following
sls
file in yourfile-roots
(let's call ittestit.sls
):and then run it. The output you'll get will be something like:
where one can see that the final
e
is missing from the output2 (wherestateful
is set toTrue
).Versions Report
The text was updated successfully, but these errors were encountered: