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]