From e8fd70a541b0023c3d525b1bc5648d6fd198fbb8 Mon Sep 17 00:00:00 2001 From: Andris Raugulis Date: Fri, 9 Sep 2016 17:43:25 +0300 Subject: [PATCH] Fix Software __repr__. --- ssh-audit.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ssh-audit.py b/ssh-audit.py index ccaa7bf..45facba 100755 --- a/ssh-audit.py +++ b/ssh-audit.py @@ -269,7 +269,9 @@ class SSH(object): def __repr__(self): out = 'vendor={0} '.format(self.vendor) if self.vendor else '' if self.product: - out += ', product={0}'.format(self.software) + if self.vendor: + out += ', ' + out += 'product={0}'.format(self.product) if self.version: out += ', version={0}'.format(self.version) if self.patch: