Merge pull request #48212 from Ch3LL/py3_ec2

Fix python3 ec2 salt-cloud TypeError when installing salt
This commit is contained in:
Nicole Thomas 2018-06-20 12:00:20 -04:00 committed by GitHub
commit 77a75ebdcf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2421,7 +2421,7 @@ def wait_for_instance(
)
pprint.pprint(console)
time.sleep(5)
output = console['output_decoded']
output = salt.utils.stringutils.to_unicode(console['output_decoded'])
comps = output.split('-----BEGIN SSH HOST KEY KEYS-----')
if len(comps) < 2:
# Fail; there are no host keys