mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-04-29 10:10:19 +00:00
monkeysphere: Fix error with no host keys
This commit is contained in:
parent
9c8518499e
commit
ccc7310bd5
@ -53,9 +53,11 @@ def subcommand_host_show_keys(arguments):
|
|||||||
"""Show host key fingerprints."""
|
"""Show host key fingerprints."""
|
||||||
try:
|
try:
|
||||||
output = subprocess.check_output(
|
output = subprocess.check_output(
|
||||||
['monkeysphere-host', 'show-keys'] + arguments.key_ids)
|
['monkeysphere-host', 'show-keys'] + arguments.key_ids,
|
||||||
|
stderr=subprocess.DEVNULL)
|
||||||
except subprocess.CalledProcessError:
|
except subprocess.CalledProcessError:
|
||||||
# no keys available
|
# no keys available
|
||||||
|
print(json.dumps({'keys': []}))
|
||||||
return
|
return
|
||||||
|
|
||||||
# parse output
|
# parse output
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user