Skip to content

Commit

Permalink
Skip bandit check for ssh monitor command
Browse files Browse the repository at this point in the history
By design the user is providing the command here.
  • Loading branch information
jamesoff committed Nov 5, 2024
1 parent f1bca57 commit c1e0f25
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion simplemonitor/Monitors/remote_ssh.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ def run_test(self) -> bool:
f"connection to {self.target_hostname} failed: {e}"
)
else:
_, stdout, _ = client.exec_command(self.command)
_, stdout, _ = client.exec_command(self.command) # nosec
# extract and cast the actual value
try:
# let's hope for the best
Expand Down

0 comments on commit c1e0f25

Please sign in to comment.