mirror of
https://github.com/ansible/awx.git
synced 2026-05-18 06:47:41 -02:30
prefetch related source credentials in tasks.py
This commit is contained in:
committed by
Jake McDermott
parent
42f4956a7f
commit
81a509424a
@@ -700,7 +700,8 @@ class TestJobCredentials(TestJobExecution):
|
||||
__iter__ = lambda *args: iter(job._credentials),
|
||||
first = lambda: job._credentials[0]
|
||||
),
|
||||
'spec_set': ['all', 'add', 'filter']
|
||||
'prefetch_related': lambda _: credentials_mock,
|
||||
'spec_set': ['all', 'add', 'filter', 'prefetch_related'],
|
||||
})
|
||||
|
||||
with mock.patch.object(UnifiedJob, 'credentials', credentials_mock):
|
||||
|
||||
Reference in New Issue
Block a user