From 6d9e2bc5e90a4db81f879f5e79b5470ea676f587 Mon Sep 17 00:00:00 2001 From: Alex Willmer Date: Tue, 1 Nov 2022 15:08:13 +0000 Subject: [PATCH] De-duplicate initialisation of ConnectionBase._connected (#79256) The same value is unconditionally set 4 lines down. --- lib/ansible/plugins/connection/__init__.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/lib/ansible/plugins/connection/__init__.py b/lib/ansible/plugins/connection/__init__.py index daa683ce30b..bcce03ae625 100644 --- a/lib/ansible/plugins/connection/__init__.py +++ b/lib/ansible/plugins/connection/__init__.py @@ -72,8 +72,6 @@ class ConnectionBase(AnsiblePlugin): if not hasattr(self, '_display'): # Backwards compat: self._display isn't really needed, just import the global display and use that. self._display = display - if not hasattr(self, '_connected'): - self._connected = False self.success_key = None self.prompt = None