Skip to content

Commit f2a913e

Browse files
committed
Initialising client so that subclasses overriding __init__ don't fail in the cleanup.
Signed-off-by: Rob Dobson <rob.dobson@citrix.com>
1 parent 77dd1a5 commit f2a913e

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

hwinfo/tools/inspector.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,12 @@ def local_command(cmd):
4242

4343
class Host(object):
4444

45+
client = None
46+
4547
def __init__(self, host='localhost', username=None, password=None):
4648
self.host = host
4749
self.username = username
4850
self.password = password
49-
self.client = None
5051
if self.is_remote():
5152
self.client = get_ssh_client(self.host, self.username, self.password)
5253

0 commit comments

Comments
 (0)