From d50c3f0bac57d1cc07c87b7722408570622bacd1 Mon Sep 17 00:00:00 2001 From: Alexis La Goutte Date: Fri, 25 Aug 2023 10:27:58 +0000 Subject: [PATCH] legacy(facts): fix pep8: E721 Do not compare types use best pratice from https://www.flake8rules.com/rules/E721.html --- plugins/module_utils/facts/legacy.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/module_utils/facts/legacy.py b/plugins/module_utils/facts/legacy.py index 6187ea1..696b0ae 100644 --- a/plugins/module_utils/facts/legacy.py +++ b/plugins/module_utils/facts/legacy.py @@ -51,7 +51,7 @@ def populate(self): self.facts['host_system_info'] = self.data return - if type(self.data) == dict and self._fact_name in self.data.keys(): + if isinstance(self.data, dict) and self._fact_name in self.data.keys(): self.facts[self._fact_name] = self.data[self._fact_name]