summaryrefslogtreecommitdiffstats
path: root/tools/data_generators
diff options
context:
space:
mode:
authorAlanCoding <arominge@redhat.com>2017-01-24 16:15:33 +0100
committerAlanCoding <arominge@redhat.com>2017-01-26 15:00:10 +0100
commiteaffde438ba83fee0032ba5a9f354b1783d14e82 (patch)
tree6ea059045fcbad4421f5c58f8ce6878bd1477693 /tools/data_generators
parentactivitiy stream optimization for org admins with large data sets (diff)
downloadawx-eaffde438ba83fee0032ba5a9f354b1783d14e82.tar.xz
awx-eaffde438ba83fee0032ba5a9f354b1783d14e82.zip
encode logic for JT name-uniqueness in data generator
Diffstat (limited to 'tools/data_generators')
-rwxr-xr-xtools/data_generators/rbac_dummy_data_generator.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/tools/data_generators/rbac_dummy_data_generator.py b/tools/data_generators/rbac_dummy_data_generator.py
index 4d0a319f5a..5907e7a34a 100755
--- a/tools/data_generators/rbac_dummy_data_generator.py
+++ b/tools/data_generators/rbac_dummy_data_generator.py
@@ -479,14 +479,14 @@ try:
job_template, _ = JobTemplate.objects.get_or_create(
name='%s Job Template %d Project %d' % (prefix, job_template_id, project_idx),
- inventory=inventory,
- project=project,
- credential=next(credential_gen),
defaults=dict(
+ inventory=inventory,
+ project=project,
+ credential=next(credential_gen),
created_by=next(creator_gen),
modified_by=next(modifier_gen),
- playbook="debug.yml"),
- **extra_kwargs
+ playbook="debug.yml",
+ **extra_kwargs)
)
job_template._is_new = _
job_templates.append(job_template)