diff --git a/awx/main/migrations/0144_event_partitions.py b/awx/main/migrations/0144_event_partitions.py index 065eead468..efdcbb37fc 100644 --- a/awx/main/migrations/0144_event_partitions.py +++ b/awx/main/migrations/0144_event_partitions.py @@ -30,7 +30,7 @@ def migrate_event_data(apps, schema_editor): # otherwise, the schema changes we would make on the old jobevents table # (namely, dropping the primary key constraint) would cause the migration # to suffer a serious performance degradation - cursor.execute(f'CREATE TABLE tmp_{tblname} ' f'(LIKE _unpartitioned_{tblname} INCLUDING ALL)') + cursor.execute(f'CREATE TABLE tmp_{tblname} (LIKE _unpartitioned_{tblname} INCLUDING ALL)') # drop primary key constraint; in a partioned table # constraints must include the partition key itself @@ -48,7 +48,7 @@ def migrate_event_data(apps, schema_editor): cursor.execute(f'DROP TABLE tmp_{tblname}') # recreate primary key constraint - cursor.execute(f'ALTER TABLE ONLY {tblname} ' f'ADD CONSTRAINT {tblname}_pkey_new PRIMARY KEY (id, job_created);') + cursor.execute(f'ALTER TABLE ONLY {tblname} ADD CONSTRAINT {tblname}_pkey_new PRIMARY KEY (id, job_created);') with connection.cursor() as cursor: """ diff --git a/awx/main/tasks/jobs.py b/awx/main/tasks/jobs.py index 6907f2fc8f..5878e70604 100644 --- a/awx/main/tasks/jobs.py +++ b/awx/main/tasks/jobs.py @@ -1261,7 +1261,7 @@ class RunProjectUpdate(BaseTask): galaxy_creds_are_defined = project_update.project.organization and project_update.project.organization.galaxy_credentials.exists() if not galaxy_creds_are_defined and (settings.AWX_ROLES_ENABLED or settings.AWX_COLLECTIONS_ENABLED): - logger.warning('Galaxy role/collection syncing is enabled, but no ' f'credentials are configured for {project_update.project.organization}.') + logger.warning('Galaxy role/collection syncing is enabled, but no credentials are configured for {project_update.project.organization}.') extra_vars.update( {