diff options
author | AlanCoding <arominge@redhat.com> | 2017-01-24 16:15:33 +0100 |
---|---|---|
committer | AlanCoding <arominge@redhat.com> | 2017-01-26 15:00:10 +0100 |
commit | eaffde438ba83fee0032ba5a9f354b1783d14e82 (patch) | |
tree | 6ea059045fcbad4421f5c58f8ce6878bd1477693 /tools/data_generators | |
parent | activitiy stream optimization for org admins with large data sets (diff) | |
download | awx-eaffde438ba83fee0032ba5a9f354b1783d14e82.tar.xz awx-eaffde438ba83fee0032ba5a9f354b1783d14e82.zip |
encode logic for JT name-uniqueness in data generator
Diffstat (limited to 'tools/data_generators')
-rwxr-xr-x | tools/data_generators/rbac_dummy_data_generator.py | 10 |
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) |