mirror of
https://github.com/ansible/awx.git
synced 2026-05-08 01:47:35 -02: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.
|
# 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
|
return results
|
||||||
|
|
||||||
def setup_instances(self):
|
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()
|
instance.save()
|
||||||
|
|
||||||
def setup_users(self, just_super_user=False):
|
def setup_users(self, just_super_user=False):
|
||||||
|
|||||||
Reference in New Issue
Block a user