From 5e07ee2e45df6be9fb9c3bae6d9937092de8d4cc Mon Sep 17 00:00:00 2001 From: AlanCoding Date: Fri, 17 Jun 2016 16:11:22 -0400 Subject: [PATCH] fix flake8 errors from notification template edit --- awx/main/models/inventory.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/awx/main/models/inventory.py b/awx/main/models/inventory.py index 15edaf181d..6153a63731 100644 --- a/awx/main/models/inventory.py +++ b/awx/main/models/inventory.py @@ -1186,16 +1186,16 @@ class InventorySource(UnifiedJobTemplate, InventorySourceOptions): error_notification_templates = list(base_notification_templates .filter(unifiedjobtemplate_notification_templates_for_errors__in=[self])) success_notification_templates = list(base_notification_templates - .filter(unifiedjobtemplate_notification_templates_for_success__in=[self])) + .filter(unifiedjobtemplate_notification_templates_for_success__in=[self])) any_notification_templates = list(base_notification_templates - .filter(unifiedjobtemplate_notification_templates_for_any__in=[self])) + .filter(unifiedjobtemplate_notification_templates_for_any__in=[self])) if self.inventory.organization is not None: error_notification_templates = set(error_notification_templates + list(base_notification_templates - .filter(organization_notification_templates_for_errors=self.inventory.organization))) + .filter(organization_notification_templates_for_errors=self.inventory.organization))) success_notification_templates = set(success_notification_templates + list(base_notification_templates - .filter(organization_notification_templates_for_success=self.inventory.organization))) + .filter(organization_notification_templates_for_success=self.inventory.organization))) any_notification_templates = set(any_notification_templates + list(base_notification_templates - .filter(organization_notification_templates_for_any=self.inventory.organization))) + .filter(organization_notification_templates_for_any=self.inventory.organization))) return dict(error=list(error_notification_templates), success=list(success_notification_templates), any=list(any_notification_templates))