From 31d06ecdc422a1a2efa7298f68bbfa491095c570 Mon Sep 17 00:00:00 2001 From: Aaron Tan Date: Thu, 27 Oct 2016 16:09:55 -0400 Subject: [PATCH] flake8 fix. --- awx/main/access.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/awx/main/access.py b/awx/main/access.py index 442cbcc895..3fd0ee0f0e 100644 --- a/awx/main/access.py +++ b/awx/main/access.py @@ -1221,8 +1221,9 @@ class JobAccess(BaseAccess): return True def can_change(self, obj, data): - return obj.status == 'new' and self.can_read(obj) and\ - self.can_add(data, validate_license=False) + return (obj.status == 'new' and + self.can_read(obj) and + self.can_add(data, validate_license=False)) @check_superuser def can_delete(self, obj):