deis/deis — pull request #1872 by gabrtv (2014-09-18 18:41:12+00:00)
Title: fix(controller): properly purge domain etcd keys on app deletion

This PR resolves a subtle logic issue with purging etcd keys. The `post_delete` signal is being called, but during app deletion the `app_domains` return as empty, so the purge is not getting called. Moving the purge to its own signal handler (in line with other signals) seems to resolve the issue.

Fixes #1869.