New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cron.present state always updates in version 2014.1.1 #11935
Comments
Interesting. Thanks for the heads up, we'll investigate this. |
I'm having trouble replicating this. I'm on Ubuntu 13.10 and using the following command:
After modifying the crontab on the initial run, additional runs are idempotent and return the following:
If you remove the offending line from your crontab and let Salt re-write it, does the behaviour change? I'm trying to figure out what we can do here to replicate this so we can try and fix it. |
OK, I think I've traced a possible cause: Here is what my crontab started as:
Running the same salt-call as you, before removing my crontab line, gives me the update still:
Then I manually removed the line and ran the salt-call again, to add the command back to the crontab:
I noticed it added this line, which wasn't in the crontab before: Running the salt-call a third time now properly detects that the crontab line doesn't need updated:
So, it appears that the missing |
@caladd That's exactly what I suspected might be happening. Thanks for the confirmation here. We'll get this fixed. |
missing id line is not the culprint @cachedout, its even tested... |
i fixed it, making the PR. |
After the release of 2014.1.1 cron.present state always updates the cron line even when nothing has changed. For example, I have this state in my SLS:
The cron line is updated every time I trigger a highstate even though nothing about the state has been updated:
This issue was not present in 2014.1 and was introduced when I upgraded to 2014.1.1
The text was updated successfully, but these errors were encountered: