diff options
author | AlanCoding <arominge@redhat.com> | 2017-02-21 18:08:03 +0100 |
---|---|---|
committer | AlanCoding <arominge@redhat.com> | 2017-02-21 18:08:03 +0100 |
commit | 0bd606e26f42c5295826e5e54ac50a2efadd9925 (patch) | |
tree | 0d49e6b4dc7e5af5cfa92d762b1379436cfde145 | |
parent | disable activity stream in cleanup_jobs and test context managers (diff) | |
download | awx-0bd606e26f42c5295826e5e54ac50a2efadd9925.tar.xz awx-0bd606e26f42c5295826e5e54ac50a2efadd9925.zip |
remove unnecessary imports after context manager change
-rwxr-xr-x | tools/data_generators/rbac_dummy_data_generator.py | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/tools/data_generators/rbac_dummy_data_generator.py b/tools/data_generators/rbac_dummy_data_generator.py index 71d1783911..0e906a9e47 100755 --- a/tools/data_generators/rbac_dummy_data_generator.py +++ b/tools/data_generators/rbac_dummy_data_generator.py @@ -35,18 +35,14 @@ os.environ.setdefault("DJANGO_SETTINGS_MODULE", "awx.settings.development") # no django.setup() # noqa -from django.contrib.auth.models import User # noqa from django.db import transaction # noqa # awx from awx.main.models import * # noqa from awx.main.signals import ( # noqa - emit_update_inventory_on_created_or_deleted, - emit_update_inventory_computed_fields, disable_activity_stream, disable_computed_fields ) -from django.db.models.signals import post_save, post_delete, m2m_changed # noqa option_list = [ @@ -696,7 +692,7 @@ try: if j == n / MAX_BULK_CREATE: # on final pass, create the remainder n_subgroup = n % MAX_BULK_CREATE - sys.stdout.write('\r Creating %d job events for job %d, subgroup: %d' % (n, job.id, j)) + sys.stdout.write('\r Creating %d job events for job %d, subgroup: %d' % (n, job.id, j + 1)) sys.stdout.flush() JobEvent.objects.bulk_create([ JobEvent( |