From d2f1b0517024555ea2439608a9f4d0524cf5b10e Mon Sep 17 00:00:00 2001 From: onokatio Date: Thu, 18 Jun 2020 22:21:09 +0900 Subject: [PATCH] :bug: Fix #87. Remove line which includes `|` to ignore visual host fingerprint key log. --- xxh_xxh/xxh.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xxh_xxh/xxh.py b/xxh_xxh/xxh.py index 19237e7..c381bf5 100644 --- a/xxh_xxh/xxh.py +++ b/xxh_xxh/xxh.py @@ -332,7 +332,7 @@ def get_host_info(self): self.eeprint('Empty answer from host when getting first info. Often this is a connection error.\n' + 'Check your connection parameters using the same command but with ssh.') - r = dict([l.split('=') for l in r.replace('\r','').split('\n') if l.strip() != '' and '=' in l]) + r = dict([l.split('=') for l in r.replace('\r','').split('\n') if l.strip() != '' and '=' in l and '|' not in l]) r = {k: (v[1:-1] if v[:1] == "'" and v[-1:] == "'" else v) for k, v in r.items()} return r