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
[fluorine] fix to salt.utils.vt.Terminal #51061
What does this PR do?
When writing output to stdout we want to ensure that the data is a st…ring not bytes. Under py2 the salt.utils.data.encode function results in a string but under py3 the result is a bytestring. Swapping out salt.utils.data.encode for salt.utils.stringutils.to_str.
What issues does this PR fix or reference?
salt-cloud under Python3 wasn't working and would endless attempt to perform the initial login for deployment.
salt-cloud works again under Python3.
Commits signed with GPG?
Please review Salt's Contributing Guide for best practices.
See GitHub's page on GPG signing for more information about signing commits with GPG.