mirror of
https://github.com/ansible/awx.git
synced 2026-04-22 18:25:28 -02:30
fix flake8
This commit is contained in:
committed by
Ryan Petrello
parent
e25bd931a1
commit
093d204d19
@@ -73,9 +73,9 @@ class PubSub(object):
|
||||
def pg_bus_conn():
|
||||
conf = settings.DATABASES['default']
|
||||
conn = psycopg2.connect(dbname=conf['NAME'],
|
||||
host=conf['HOST'],
|
||||
user=conf['USER'],
|
||||
password=conf['PASSWORD'])
|
||||
host=conf['HOST'],
|
||||
user=conf['USER'],
|
||||
password=conf['PASSWORD'])
|
||||
# Django connection.cursor().connection doesn't have autocommit=True on
|
||||
conn.set_session(autocommit=True)
|
||||
pubsub = PubSub(conn)
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
import logging
|
||||
import socket
|
||||
import string
|
||||
import random
|
||||
import json
|
||||
|
||||
@@ -2,13 +2,11 @@ import inspect
|
||||
import logging
|
||||
import sys
|
||||
import json
|
||||
import re
|
||||
from uuid import uuid4
|
||||
|
||||
from django.conf import settings
|
||||
from django.db import connection
|
||||
|
||||
from . import pg_bus_conn, get_local_queuename
|
||||
from . import pg_bus_conn
|
||||
|
||||
logger = logging.getLogger('awx.main.dispatch')
|
||||
|
||||
|
||||
@@ -7,7 +7,6 @@ import signal
|
||||
import sys
|
||||
import redis
|
||||
import json
|
||||
import re
|
||||
import psycopg2
|
||||
from uuid import UUID
|
||||
from queue import Empty as QueueEmpty
|
||||
|
||||
Reference in New Issue
Block a user