You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Running it shows that nothing will be deleted, but a changes dictionary with informational data is returned:
local:
----------
ID: /tmp/src
Function: file.retention_schedule
Result: True
Comment: 0 backups were removed from /tmp/src.
Started: 20:07:11.329835
Duration: 10.78 ms
Changes:
----------
deleted:
ignored:
- one
- ..
- .
retained:
Summary for local
------------
Succeeded: 1 (changed=1)
Failed: 0
------------
Total states run: 1
Total run time: 10.780 ms
Expected behavior
States should only report changes when changes are made.
Versions Report*
salt --versions-report
(Provided by running salt --versions-report. Please also mention any differences in master/minion versions.)
Salt Version:
Salt: 3005.1Dependency Versions:
cffi: Not Installedcherrypy: Not Installeddateutil: Not Installeddocker-py: Not Installedgitdb: Not Installedgitpython: Not InstalledJinja2: 3.1.2libgit2: Not InstalledM2Crypto: Not InstalledMako: Not Installedmsgpack: 1.0.4msgpack-pure: Not Installedmysql-python: Not Installedpycparser: Not Installedpycrypto: 2.6.1pycryptodome: 3.15.0pygit2: Not InstalledPython: 3.7.3 (default, Oct 31 2022, 14:04:00)python-gnupg: Not InstalledPyYAML: 6.0PyZMQ: 24.0.1smmap: Not Installedtimelib: Not InstalledTornado: 4.5.3ZMQ: 4.3.4System Versions:
dist: debian 10 busterlocale: UTF-8machine: x86_64release: 4.19.0-22-amd64system: Linuxversion: Debian GNU/Linux 10 buster
The text was updated successfully, but these errors were encountered:
Description
The
file.retention_schedule
state function always reports changes, regardless of outcome.Setup
Make a test directory to operate against:
Basic state YAML (copied from state function docs):
Running it shows that nothing will be deleted, but a changes dictionary with informational data is returned:
Expected behavior
States should only report changes when changes are made.
Versions Report*
salt --versions-report
(Provided by running salt --versions-report. Please also mention any differences in master/minion versions.)The text was updated successfully, but these errors were encountered: