We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c64c2e2 commit a05b5c8Copy full SHA for a05b5c8
1 file changed
api/models.py
@@ -489,9 +489,12 @@ def calculate(self):
489
if containers:
490
for c in containers:
491
d['containers'].setdefault(c.type, {})[str(c.num)] = c.status
492
- d['proxies'] = []
493
- for n in self.formation.node_set.filter(layer__proxy=True):
494
- d['proxies'].append(n.fqdn)
+ d['domains'] = []
+ if self.formation.domain:
+ d['domains'].append('{}.{}'.format(self.id, self.formation.domain))
495
+ else:
496
+ for n in self.formation.node_set.filter(layer__proxy=True):
497
+ d['domains'].append(n.fqdn)
498
# TODO: add proper sharing and access controls
499
d['users'] = {}
500
for u in (self.owner.username,):
0 commit comments