Fix Software __repr__.

This commit is contained in:
Andris Raugulis 2016-09-09 17:43:25 +03:00
parent b11018bd7d
commit e8fd70a541

View File

@ -269,7 +269,9 @@ class SSH(object):
def __repr__(self): def __repr__(self):
out = 'vendor={0} '.format(self.vendor) if self.vendor else '' out = 'vendor={0} '.format(self.vendor) if self.vendor else ''
if self.product: if self.product:
out += ', product={0}'.format(self.software) if self.vendor:
out += ', '
out += 'product={0}'.format(self.product)
if self.version: if self.version:
out += ', version={0}'.format(self.version) out += ', version={0}'.format(self.version)
if self.patch: if self.patch: