Skip to content

Commit 23a942c

Browse files
committed
Code changes to ignore warnings in stdout.
Signed-off-by: lakshmj <[email protected]>
1 parent 9cee091 commit 23a942c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

plugins/connection/ssh_netscaler_adc.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -403,8 +403,8 @@ def wrapped(self, *args, **kwargs):
403403
warning_regex = r"Warning: \[[\s\S]*?\]\s*"
404404
stdout = re.sub(warning_regex, "", stdout, 0, re.UNICODE)
405405

406-
# Remove RPC node password warnings that contaminate stdout
407-
rpc_warning_regex = r"Warning: One or more RPC nodes are configured with default passwords[^\r\n]*"
406+
# # Remove RPC node password warnings that contaminate stdout
407+
rpc_warning_regex = r"Warning: One or more RPC nodes are configured with default passwords. For enhanced security, you must change the default RPC node password."
408408
stdout = re.sub(rpc_warning_regex, "", stdout, 0, re.UNICODE)
409409

410410
# Remove leading "]" characters that might remain

0 commit comments

Comments
 (0)