run_command returns a CalledProcess object, no 'output' attribute, but 'stdout' instead

This commit is contained in:
Ryan Harper 2018-05-21 11:29:41 -05:00
parent 79208bc00b
commit e1a6542d86
1 changed files with 1 additions and 1 deletions

View File

@ -55,7 +55,7 @@ def host_key_fingerprints():
log.debug("sshd -T failed %r", config['err'])
return []
keyfiles = []
for line in config.output.splitlines():
for line in config.stdout.splitlines():
if line.startswith('hostkey '):
keyfiles.append(line.split(None, 1)[1])
info = []