Nosec Paramiko exec_command() warning from Bandit
In an effort to clean up Bandit issues, this can be nosec'd as the
command is either made from hardcoded variables or passed in from the
command line by users who have access to the machine running cinder.
@@ -175,7 +175,8 @@ class ReduxioAPI(object):
for x in range(1, CONNECTION_RETRY_NUM):
try:
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)
success = True
break
