mirror of
https://github.com/ansible/awx.git
synced 2024-10-31 23:51:09 +03:00
Temporarily disable instance id gathering
During requests
This commit is contained in:
parent
d8ea0920c5
commit
a4ec0739ea
@ -32,8 +32,13 @@ class InstanceManager(models.Manager):
|
|||||||
hostname='localhost',
|
hostname='localhost',
|
||||||
uuid='00000000-0000-0000-0000-000000000000')
|
uuid='00000000-0000-0000-0000-000000000000')
|
||||||
|
|
||||||
# Return the appropriate record from the database.
|
# If we can determine the instance we are on then return
|
||||||
return self.get(hostname=socket.gethostname())
|
# 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):
|
def my_role(self):
|
||||||
# NOTE: TODO: Likely to repurpose this once standalone ramparts are a thing
|
# NOTE: TODO: Likely to repurpose this once standalone ramparts are a thing
|
||||||
|
Loading…
Reference in New Issue
Block a user