perf: The gateway password contains ! Password parsing failed

pull/13777/head
feng 2024-07-19 10:37:42 +08:00 committed by feng626
parent 495ee99e29
commit 45291aba0c
1 changed files with 1 additions and 1 deletions

View File

@ -121,7 +121,7 @@ class SSHClient:
def local_gateway_prepare(self):
gateway_args = self.module.params['gateway_args'] or ''
pattern = r"(?:sshpass -p ([\w@]+))?\s*ssh -o Port=(\d+)\s+-o StrictHostKeyChecking=no\s+([\w@]+)@([" \
pattern = r"(?:sshpass -p ([^ ]+))?\s*ssh -o Port=(\d+)\s+-o StrictHostKeyChecking=no\s+([\w@]+)@([" \
r"\d.]+)\s+-W %h:%p -q(?: -i (.+))?'"
match = re.search(pattern, gateway_args)