diff --git a/salt/master.py b/salt/master.py index c9f0bac35c..5d5c8f71fb 100644 --- a/salt/master.py +++ b/salt/master.py @@ -1451,7 +1451,7 @@ class AESFuncs(object): if load['loc']: fp_.seek(load['loc']) - fp_.write(load['data']) + fp_.write(salt.utils.stringutils.to_bytes(load['data'])) return True def _pillar(self, load):