Merge "Nosec Paramiko exec_command() warning from Bandit"
This commit is contained in:
commit
652977dd38
@ -175,7 +175,8 @@ class ReduxioAPI(object):
|
|||||||
for x in range(1, CONNECTION_RETRY_NUM):
|
for x in range(1, CONNECTION_RETRY_NUM):
|
||||||
try:
|
try:
|
||||||
self._reconnect_if_needed()
|
self._reconnect_if_needed()
|
||||||
stdin, stdout, stderr = self.ssh.exec_command(
|
stdin, stdout, stderr = self.ssh.exec_command( # nosec
|
||||||
|
# command input from authorized users on command line
|
||||||
command=six.text_type(cmd), timeout=CLI_SSH_CMD_TIMEOUT)
|
command=six.text_type(cmd), timeout=CLI_SSH_CMD_TIMEOUT)
|
||||||
success = True
|
success = True
|
||||||
break
|
break
|
||||||
|
Loading…
x
Reference in New Issue
Block a user