Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
Unicode broken with file.blockreplace on Python2 #49043
Description of Issue/Question
Trying to use
somefile-exists: file: - managed - name: /somefile somefile-blockreplace: file: - blockreplace - append_if_not_found: true - name: /somefile - template: jinja - source: salt://somefile - require: - file: somefile-exists - context: unicode_string: "\xe4\xf6\xfc"
Steps to Reproduce Issue
And a different outcome on
Interesting to note is that the file did not exist in the filesystem before the run, but the file.managed state found the file existing, even with the requirement in the statefile.