[2017.7.8] backport PR #48212

This commit is contained in:
Ch3LL 2018-08-09 15:47:39 -04:00
parent f73ba21bc7
commit cf7f2459b8
No known key found for this signature in database
GPG Key ID: 132B55A7C13EFA73

View File

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