mirror of
https://github.com/ansible/awx.git
synced 2026-03-06 19:21:06 -03:30
Do not use ip_address on instances anymore.
This commit is contained in:
@@ -98,4 +98,4 @@ class HAMiddleware(object):
|
||||
})
|
||||
|
||||
# Redirect to the base page of the primary instance.
|
||||
return HttpResponseRedirect('http://%s/' % primary.ip_address)
|
||||
return HttpResponseRedirect('http://%s/' % primary.hostname)
|
||||
|
||||
@@ -218,7 +218,7 @@ class BaseTestMixin(object):
|
||||
return results
|
||||
|
||||
def setup_instances(self):
|
||||
instance = Instance(uuid=settings.SYSTEM_UUID, primary=True, ip_address='127.0.0.1')
|
||||
instance = Instance(uuid=settings.SYSTEM_UUID, primary=True, hostname='127.0.0.1')
|
||||
instance.save()
|
||||
|
||||
def setup_users(self, just_super_user=False):
|
||||
|
||||
Reference in New Issue
Block a user