From 12b3329b2789620f33a8f204048fdd4f48a1e115 Mon Sep 17 00:00:00 2001 From: Matthew Jones Date: Wed, 6 Aug 2014 12:39:12 -0400 Subject: [PATCH] Test for Jenkins unit test runs in some rbac code also --- awx/main/access.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/awx/main/access.py b/awx/main/access.py index a6bc7299a6..3bd7b9d3dd 100644 --- a/awx/main/access.py +++ b/awx/main/access.py @@ -354,7 +354,7 @@ class HostAccess(BaseAccess): reader = TaskSerializer() validation_info = reader.from_file() - if 'test' in sys.argv: + if 'test' in sys.argv or 'jenkins' in sys.argv: # this hack is in here so the test code can function # but still go down *most* of the license code path. validation_info['free_instances'] = 99999999 @@ -994,7 +994,7 @@ class JobAccess(BaseAccess): reader = TaskSerializer() validation_info = reader.from_file() - if 'test' in sys.argv: + if 'test' in sys.argv or 'jenkins' in sys.argv: validation_info['free_instances'] = 99999999 validation_info['time_remaining'] = 99999999 validation_info['grace_period_remaining'] = 99999999