file.check_file_meta does not handle contents that are binary. #53600
Labels
Bug
broken, incorrect, or confusing behavior
Feature
new functionality including changes to functionality and code refactors, etc.
fixed-pls-verify
fix is linked, bug author to confirm fix
stale
ZD
The issue is related to a Zendesk customer support ticket.
Milestone
Description of Issue
Original problem started out as file.managed with content_pillar throwing an error.
Unable to manage file: endswith first arg must be bytes or a tuple of bytes, not str
with a trace in the debug logs of
Which pointed to
file.check_managed_changes
when it was checking the meta of the file. forpchanges
This only happens when any kind of binary
contents
is used instead of a source.Setup
Quickest setup i found.
setup pillar.file_tree
add a windows minion to the master.
Add a binary file to the file_tree pillar for that windows minion that is a binary file named
random.bin
Use the following state twice. Once to create the binary file. and again to fail.
Steps to Reproduce Issue
See above
Versions Report
Note under py2 the error is different but looks to be caused by the same inability to handle binary data coming from
contents
The text was updated successfully, but these errors were encountered: