mirror of
https://github.com/ansible/awx.git
synced 2026-05-17 06:17:36 -02:30
support the new CLI in py2 *and* py3
This commit is contained in:
@@ -1,11 +1,12 @@
|
||||
from queue import Queue, Empty
|
||||
import time
|
||||
import threading
|
||||
import logging
|
||||
import atexit
|
||||
import json
|
||||
import ssl
|
||||
import urllib.parse
|
||||
|
||||
from six.moves.queue import Queue, Empty
|
||||
from six.moves.urllib.parse import urlparse
|
||||
|
||||
from awxkit.config import config
|
||||
|
||||
@@ -55,7 +56,7 @@ class WSClient(object):
|
||||
import websocket
|
||||
|
||||
if not hostname:
|
||||
result = urllib.parse.urlparse(config.base_url)
|
||||
result = urlparse(config.base_url)
|
||||
secure = result.scheme == 'https'
|
||||
port = result.port
|
||||
if port is None:
|
||||
|
||||
Reference in New Issue
Block a user