Skip to content

Commit a05b5c8

Browse files
author
Gabriel Monroy
committed
change app databag format from proxies to domains
1 parent c64c2e2 commit a05b5c8

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

api/models.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -489,9 +489,12 @@ def calculate(self):
489489
if containers:
490490
for c in containers:
491491
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)
492+
d['domains'] = []
493+
if self.formation.domain:
494+
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)
495498
# TODO: add proper sharing and access controls
496499
d['users'] = {}
497500
for u in (self.owner.username,):

0 commit comments

Comments
 (0)