mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 08:58:59 +00:00
Merge pull request #48212 from Ch3LL/py3_ec2
Fix python3 ec2 salt-cloud TypeError when installing salt
This commit is contained in:
commit
77a75ebdcf
@ -2421,7 +2421,7 @@ def wait_for_instance(
|
|||||||
)
|
)
|
||||||
pprint.pprint(console)
|
pprint.pprint(console)
|
||||||
time.sleep(5)
|
time.sleep(5)
|
||||||
output = console['output_decoded']
|
output = salt.utils.stringutils.to_unicode(console['output_decoded'])
|
||||||
comps = output.split('-----BEGIN SSH HOST KEY KEYS-----')
|
comps = output.split('-----BEGIN SSH HOST KEY KEYS-----')
|
||||||
if len(comps) < 2:
|
if len(comps) < 2:
|
||||||
# Fail; there are no host keys
|
# Fail; there are no host keys
|
||||||
|
Loading…
Reference in New Issue
Block a user