Open OrangeDog opened 5 years ago
test=true
. Perhaps the same bug extends to non-test runs as well.One of the problems is that prereq
never worked the way the documentation claimed since the very begining; See #52200
The other problem is that archive.extracted
can't return correct changes when test=true
I am looking at the code from latest develop branch
if source_is_local:
cached = source_match
else:
if __opts__['test']:
ret['result'] = None
ret['comment'] = (
'Archive {0} would be cached (if necessary) and checked to '
'discover if extraction is needed'.format(
salt.utils.url.redact_http_basic_auth(source_match)
)
)
return ret
if an archive is not local, the state stops here and wouldn't return any changes.
There are a few other places that need to be fixed in order to return expected changes.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
If this issue is closed prematurely, please leave a comment and we will gladly reopen the issue.
This issue still exists.
Thank you for updating this issue. It is no longer marked as stale.
This issue is still present if someone wonder.
Instead of only running
file.absent
before the archive is due to be extracted, it instead runs both states on every application.Removing the file state causes the archive state to (correctly) only run when the source changes or there are files missing.
Output with
test=true
:Versions Report