diff options
author | jan.hradil <jan.hradil@pantheon.tech> | 2017-04-27 14:47:16 +0200 |
---|---|---|
committer | Tibor Frank <tifrank@cisco.com> | 2017-05-02 06:24:18 +0000 |
commit | 44cafa8a265cfb1144638430079ef4dbf2501d72 (patch) | |
tree | a1eaea31c31578107c9cd11946772c259344010b /resources/libraries/python/ssh.py | |
parent | 41212b4103c2f1b746d8b2101328e49e8697ef6c (diff) |
csit-validate-pylint-master/3731 for build 3731
pylint repairs
deleted duplicated method from HcPersistence.py
Change-Id: I426e6c15957c995ea10bd11ae2deac75b1cab922
Signed-off-by: jan.hradil <jan.hradil@pantheon.tech>
Diffstat (limited to 'resources/libraries/python/ssh.py')
-rw-r--r-- | resources/libraries/python/ssh.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/resources/libraries/python/ssh.py b/resources/libraries/python/ssh.py index 0009bde59b..f59bd02e25 100644 --- a/resources/libraries/python/ssh.py +++ b/resources/libraries/python/ssh.py @@ -90,7 +90,8 @@ class SSH(object): logger.debug('Connect peer: {0}'. format(self._ssh.get_transport().getpeername())) - logger.debug('Connections: {0}'.format(str(SSH.__existing_connections))) + logger.debug('Connections: {0}'. + format(str(SSH.__existing_connections))) except: if attempts > 0: self._reconnect(attempts-1) @@ -271,8 +272,8 @@ class SSH(object): except socket.timeout: raise Exception('Socket timeout: {0}'.format(buf)) tmp = buf.replace(cmd.replace('\n', ''), '') - for p in prompt: - tmp.replace(p, '') + for item in prompt: + tmp.replace(item, '') return tmp @staticmethod |