Code Review
/
csit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Pylint fixes
[csit.git]
/
resources
/
libraries
/
python
/
ssh.py
diff --git
a/resources/libraries/python/ssh.py
b/resources/libraries/python/ssh.py
index
4b3838b
..
90ac0be
100644
(file)
--- a/
resources/libraries/python/ssh.py
+++ b/
resources/libraries/python/ssh.py
@@
-301,7
+301,7
@@
def exec_cmd(node, cmd, timeout=600, sudo=False):
ssh = SSH()
try:
ssh.connect(node)
ssh = SSH()
try:
ssh.connect(node)
- except Exception as err:
+ except
SSH
Exception as err:
logger.error("Failed to connect to node" + str(err))
return None, None, None
logger.error("Failed to connect to node" + str(err))
return None, None, None
@@
-311,7
+311,7
@@
def exec_cmd(node, cmd, timeout=600, sudo=False):
else:
(ret_code, stdout, stderr) = ssh.exec_command_sudo(cmd,
timeout=timeout)
else:
(ret_code, stdout, stderr) = ssh.exec_command_sudo(cmd,
timeout=timeout)
- except Exception as err:
+ except
SSH
Exception as err:
logger.error(err)
return None, None, None
logger.error(err)
return None, None, None