mirror of
https://github.com/ansible/awx.git
synced 2024-10-31 23:51:09 +03:00
fix to allow jobs to run in dev server again
This commit is contained in:
parent
bed6c666ae
commit
6bd5d8553b
@ -133,7 +133,10 @@ class InventoryScript(object):
|
||||
else:
|
||||
sys.stderr.write('%s\n' % str(e))
|
||||
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)
|
||||
|
||||
def main():
|
||||
|
@ -662,10 +662,7 @@ ACTIVITY_STREAM_ENABLED = True
|
||||
ACTIVITY_STREAM_ENABLED_FOR_INVENTORY_SYNC = False
|
||||
|
||||
# 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
|
||||
else:
|
||||
INTERNAL_API_URL = 'http://127.0.0.1:8000'
|
||||
INTERNAL_API_URL = 'http://127.0.0.1:%s' % DEVSERVER_DEFAULT_PORT
|
||||
|
||||
# ZeroMQ callback settings.
|
||||
CALLBACK_CONSUMER_PORT = "tcp://127.0.0.1:5556"
|
||||
|
Loading…
Reference in New Issue
Block a user