Hi,
When salt applied a state which changed the contents of a text file it used to display a diff when using test=true. Now it just states that a state changed:
[root@salt salt]# salt ws1\* state.apply hosts test=true
ws1.xxx.xx.xx:
----------
ID: /etc/hosts
Function: file.managed
Result: None
Comment: The file /etc/hosts is set to be changed
Started: 10:17:42.497992
Duration: 101.644 ms
Changes:
Summary for ws1.xxx.xx.xx
------------
Succeeded: 1 (unchanged=1)
Failed: 0
------------
Total states run: 1
Total run time: 101.644 ms
[root@salt salt]#
However, if it is run without test=true the state is applied and a diff displayed.
This makes it rather difficult to test state changes. I've had difficulty crafting a search term to determine if this is a known change, something do that can be configured, or a bug. I've played around with --state-output and --state-verbose, but these make no difference. I think this was working prior to upgrading to salt 2019.2.0 (Fluorine). It appears to be a minion problem, as the diff is displayed on the one xenial minion I have left running and old version of salt:
salt-common/xenial,xenial,now 2015.8.8+ds-1 all [installed,automatic]
salt-minion/xenial,xenial,now 2015.8.8+ds-1 all [installed]
The salt master is also on 2019.2.0 (Fluorine).
Any ideas/pointers appreciated!
Chris