mirror of
https://github.com/ansible/awx.git
synced 2026-03-01 08:48:46 -03:30
Merge pull request #3509 from ansible/ha_installer
Improvements to the setup/installer to support new HA workflows
This commit is contained in:
@@ -31,8 +31,13 @@ class InstanceManager(models.Manager):
|
||||
hostname='localhost',
|
||||
uuid='00000000-0000-0000-0000-000000000000')
|
||||
|
||||
# Return the appropriate record from the database.
|
||||
return self.get(hostname=socket.gethostname())
|
||||
# If we can determine the instance we are on then return
|
||||
# that, otherwise None which would be the standalone
|
||||
# case
|
||||
# TODO: Replace, this doesn't work if the hostname
|
||||
# is different from the Instance.name
|
||||
# node = self.filter(hostname=socket.gethostname())
|
||||
return self.all()[0]
|
||||
|
||||
def my_role(self):
|
||||
# NOTE: TODO: Likely to repurpose this once standalone ramparts are a thing
|
||||
|
||||
Reference in New Issue
Block a user