mirror of
https://github.com/ZwareBear/awx.git
synced 2026-05-01 04:11:56 -05:00
Support caching for ec2 inventory sync to avoid unit test failures.
This commit is contained in:
@@ -807,8 +807,8 @@ class RunInventoryUpdate(BaseTask):
|
||||
ec2_opts.setdefault('vpc_destination_variable', 'ip_address')
|
||||
ec2_opts.setdefault('route53', 'False')
|
||||
ec2_opts.setdefault('nested_groups', 'True')
|
||||
ec2_opts['cache_path'] = tempfile.mkdtemp(prefix='awx_ec2_')
|
||||
ec2_opts['cache_max_age'] = '300'
|
||||
ec2_opts.setdefault('cache_path', tempfile.mkdtemp(prefix='awx_ec2_'))
|
||||
ec2_opts.setdefault('cache_max_age', '300')
|
||||
for k,v in ec2_opts.items():
|
||||
cp.set(section, k, str(v))
|
||||
# Build pyrax creds INI for rax inventory script.
|
||||
|
||||
Reference in New Issue
Block a user