mirror of
https://github.com/ansible/awx.git
synced 2026-02-14 17:50:02 -03:30
fix to allow jobs to run in dev server again
This commit is contained in:
@@ -133,7 +133,10 @@ class InventoryScript(object):
|
|||||||
else:
|
else:
|
||||||
sys.stderr.write('%s\n' % str(e))
|
sys.stderr.write('%s\n' % str(e))
|
||||||
if hasattr(e, 'response'):
|
if hasattr(e, 'response'):
|
||||||
sys.stderr.write('%s\n' % e.response.content)
|
if hasattr(e.response, 'content'):
|
||||||
|
sys.stderr.write('%s\n' % e.response.content)
|
||||||
|
else:
|
||||||
|
sys.stderr.write('%s\n' % e.response)
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
|
|||||||
@@ -662,10 +662,7 @@ ACTIVITY_STREAM_ENABLED = True
|
|||||||
ACTIVITY_STREAM_ENABLED_FOR_INVENTORY_SYNC = False
|
ACTIVITY_STREAM_ENABLED_FOR_INVENTORY_SYNC = False
|
||||||
|
|
||||||
# Internal API URL for use by inventory scripts and callback plugin.
|
# Internal API URL for use by inventory scripts and callback plugin.
|
||||||
if 'devserver' in INSTALLED_APPS:
|
INTERNAL_API_URL = 'http://127.0.0.1:%s' % DEVSERVER_DEFAULT_PORT
|
||||||
INTERNAL_API_URL = 'http://127.0.0.1:%s' % DEVSERVER_DEFAULT_PORT
|
|
||||||
else:
|
|
||||||
INTERNAL_API_URL = 'http://127.0.0.1:8000'
|
|
||||||
|
|
||||||
# ZeroMQ callback settings.
|
# ZeroMQ callback settings.
|
||||||
CALLBACK_CONSUMER_PORT = "tcp://127.0.0.1:5556"
|
CALLBACK_CONSUMER_PORT = "tcp://127.0.0.1:5556"
|
||||||
|
|||||||
Reference in New Issue
Block a user