From 899ff8ed3bedc164d09faead839c4cce64c58869 Mon Sep 17 00:00:00 2001 From: Akita Noek Date: Tue, 24 May 2016 13:19:55 -0400 Subject: [PATCH] flake8 --- awx/main/access.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/awx/main/access.py b/awx/main/access.py index 68d9c94ded..7e2289df42 100644 --- a/awx/main/access.py +++ b/awx/main/access.py @@ -774,7 +774,7 @@ class JobTemplateAccess(BaseAccess): inventory = Inventory.objects.filter(id=inventory_pk) if not inventory.exists() and not data.get('ask_inventory_on_launch', False): return False - if inventory.exists() and not self.user in inventory[0].use_role: + if inventory.exists() and self.user not in inventory[0].use_role: return False project_pk = get_pk_from_dict(data, 'project')