run_command returns a CalledProcess object, no 'output' attribute, but 'stdout' instead
This commit is contained in:
parent
79208bc00b
commit
e1a6542d86
|
@ -55,7 +55,7 @@ def host_key_fingerprints():
|
||||||
log.debug("sshd -T failed %r", config['err'])
|
log.debug("sshd -T failed %r", config['err'])
|
||||||
return []
|
return []
|
||||||
keyfiles = []
|
keyfiles = []
|
||||||
for line in config.output.splitlines():
|
for line in config.stdout.splitlines():
|
||||||
if line.startswith('hostkey '):
|
if line.startswith('hostkey '):
|
||||||
keyfiles.append(line.split(None, 1)[1])
|
keyfiles.append(line.split(None, 1)[1])
|
||||||
info = []
|
info = []
|
||||||
|
|
Loading…
Reference in New Issue