We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents ea0f066 + 6289188 commit 230235bCopy full SHA for 230235b
1 file changed
controller/api/models.py
@@ -863,7 +863,12 @@ def _etcd_publish_domains(**kwargs):
863
864
def _etcd_purge_domains(**kwargs):
865
app = kwargs['instance'].app
866
- _etcd_client.delete('/deis/domains/{}'.format(app))
+ app_domains = app.domain_set.all()
867
+ if app_domains:
868
+ _etcd_client.write('/deis/domains/{}'.format(app),
869
+ ' '.join(str(d.domain) for d in app_domains))
870
+ else:
871
+ _etcd_client.delete('/deis/domains/{}'.format(app))
872
873
874
# Log significant app-related events
0 commit comments