diff --git a/plugins/lookup/controller_object_diff.py b/plugins/lookup/controller_object_diff.py index e33a4013c..6d60227c4 100644 --- a/plugins/lookup/controller_object_diff.py +++ b/plugins/lookup/controller_object_diff.py @@ -231,11 +231,7 @@ def run(self, terms, variables=None, **kwargs): item.update({"organizations": [item[item["resource_type"]]]}) if item["resource_type"] == "instance_group": item.update({"instance_groups": [item[item["resource_type"]]]}) - item.update({"role": item["name"].lower() - .replace(" ", "_") - .replace("ad_hoc", "adhoc") - .replace("approve", "approval") - }) + item.update({"role": item["name"].lower().replace(" ", "_").replace("ad_hoc", "adhoc").replace("approve", "approval")}) # Remove the extra fields item.pop("users") item.pop("teams")