From 67e128649c851199728fe000716fb30910506799 Mon Sep 17 00:00:00 2001 From: rohitthakur2590 Date: Mon, 1 Jul 2024 12:00:07 +0530 Subject: [PATCH] remove redundant code Signed-off-by: rohitthakur2590 --- changelogs/fragments/fix_f5_remote_addr_mapping.yaml | 2 +- plugins/connection/persistent.py | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/changelogs/fragments/fix_f5_remote_addr_mapping.yaml b/changelogs/fragments/fix_f5_remote_addr_mapping.yaml index f39d446d6..0e94534ed 100644 --- a/changelogs/fragments/fix_f5_remote_addr_mapping.yaml +++ b/changelogs/fragments/fix_f5_remote_addr_mapping.yaml @@ -1,3 +1,3 @@ --- bugfixes: - - Correctly supply the provided variables(remote server,host,port) addr as part of options to persistent connection. + - Properly pass the provided variables (remote server, host, port) as options to the persistent connection. diff --git a/plugins/connection/persistent.py b/plugins/connection/persistent.py index c9767872e..72983dc48 100644 --- a/plugins/connection/persistent.py +++ b/plugins/connection/persistent.py @@ -73,7 +73,6 @@ def run(self): host=self._play_context.remote_addr, ) options = self.get_options() - options["ansible_command_timeout"] = self.get_option("persistent_command_timeout") for option in self._options.keys(): options[option] = self.get_option(option) socket_path = start_connection(self._play_context, options, self._task_uuid)