mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Move back to using null byte check for contents
This commit is contained in:
parent
8e214c9fa9
commit
5741d287b5
1 changed files with 1 additions and 1 deletions
|
@ -2269,7 +2269,7 @@ def managed(name,
|
|||
.format(contents_id)
|
||||
)
|
||||
|
||||
if salt.utils.stringutils.is_binary(use_contents):
|
||||
if isinstance(use_contents, six.string_types) and str('\0') in use_contents:
|
||||
contents = use_contents
|
||||
else:
|
||||
validated_contents = _validate_str_list(use_contents)
|
||||
|
|
Loading…
Add table
Reference in a new issue