From 5a7a1b8f20bb1bacb0f154a83c66bcfc1eb1e695 Mon Sep 17 00:00:00 2001 From: Alan Rominger Date: Thu, 17 Jun 2021 11:06:01 -0400 Subject: [PATCH] Remove inventory_as_dict which would mess with downstream templating (#5085) --- awx/main/models/inventory.py | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/awx/main/models/inventory.py b/awx/main/models/inventory.py index f7bcb7853e..d50c286b89 100644 --- a/awx/main/models/inventory.py +++ b/awx/main/models/inventory.py @@ -1545,13 +1545,7 @@ class insights(PluginFileInjector): collection = 'insights' downstream_namespace = 'redhat' downstream_collection = 'insights' - use_fqcn = 'true' - - def inventory_as_dict(self, inventory_update, private_data_dir): - ret = super(insights, self).inventory_as_dict(inventory_update, private_data_dir) - # this inventory plugin requires the fully qualified inventory plugin name - ret['plugin'] = f'{self.namespace}.{self.collection}.{self.plugin_name}' - return ret + use_fqcn = True for cls in PluginFileInjector.__subclasses__():