X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=resources%2Flibraries%2Fpython%2Fssh.py;h=06cd96010d58fa88e173071be2a1a9c203933e74;hb=b4e5c717f5e2c39ded81f0c6f7b0f9f61945befd;hp=7368c6980a06dd2a2482e3adfd3283fd55282ef3;hpb=7afd133d67400a062b0d3ae2ecf8b6ab380077fe;p=csit.git diff --git a/resources/libraries/python/ssh.py b/resources/libraries/python/ssh.py index 7368c6980a..06cd96010d 100644 --- a/resources/libraries/python/ssh.py +++ b/resources/libraries/python/ssh.py @@ -370,7 +370,7 @@ def exec_cmd(node, cmd, timeout=600, sudo=False): raise TypeError('Node parameter is None') if cmd is None: raise TypeError('Command parameter is None') - if len(cmd) == 0: + if not cmd: raise ValueError('Empty command parameter') ssh = SSH()