mirror of
https://github.com/ansible/awx.git
synced 2026-05-10 19:07:36 -02:30
Template the listener protocol into the receptor install bundle (#14792)
Previously we were hard-coding tcp, now we need to also support ws/wss.
This commit is contained in:
committed by
Seth Foster
parent
cd9dd43be7
commit
8ddb604bf1
@@ -234,6 +234,10 @@ class Instance(HasPolicyEditsMixin, BaseModel):
|
||||
return True
|
||||
return self.health_check_started > self.last_health_check
|
||||
|
||||
@property
|
||||
def canonical_address(self):
|
||||
return self.receptor_addresses.filter(canonical=True).first()
|
||||
|
||||
@property
|
||||
def canonical_address_port(self):
|
||||
# note: don't create a different query for receptor addresses, as this is prefetched on the View for optimization
|
||||
|
||||
Reference in New Issue
Block a user