Description:
Destroying a subordinate shouldn't result in tracebacks
Destroying a subordinate service after destroying its primary services
results in a traceback
This patch corrects this. The associated test also previously failed to
exercise all the needed
behavior to demonstrate this, which is corrected as well.
Affected files:
A [revision details]
M juju/control/destroy_service.py
M juju/control/remove_relation.py
M juju/control/tests/test_destroy_service.py
M juju/control/tests/test_remove_relation.py
M juju/hooks/tests/test_invoker.py
M juju/lib/testing.py
M juju/state/tests/test_firewall.py
M juju/state/tests/test_service.py
M juju/unit/lifecycle.py
M juju/unit/tests/test_lifecycle.py
M juju/unit/workflow.py
Reviewers: mp+102427_ code.launchpad. net,
Message:
Please take a look.
Description:
Destroying a subordinate shouldn't result in tracebacks
Destroying a subordinate service after destroying its primary services
results in a traceback
This patch corrects this. The associated test also previously failed to
exercise all the needed
behavior to demonstrate this, which is corrected as well.
https:/ /code.launchpad .net/~bcsaller/ juju/subordinat e-removes/ +merge/ 102427
(do not edit description out of merge proposal)
Please review this at https:/ /codereview. appspot. com/6256054/
Affected files: destroy_ service. py remove_ relation. py tests/test_ destroy_ service. py tests/test_ remove_ relation. py tests/test_ invoker. py tests/test_ firewall. py tests/test_ service. py lifecycle. py tests/test_ lifecycle. py workflow. py
A [revision details]
M juju/control/
M juju/control/
M juju/control/
M juju/control/
M juju/hooks/
M juju/lib/testing.py
M juju/state/
M juju/state/
M juju/unit/
M juju/unit/
M juju/unit/