mirror of
https://github.com/ansible/awx.git
synced 2026-01-15 03:40:42 -03:30
Do not use ip_address on instances anymore.
This commit is contained in:
parent
f99a73fb85
commit
9dfa26fa58
@ -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):
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user