8a04739912
If there are multiple charms of a given application then a hook like leader-settings-changed can trigger a deferred hook. So a race can occur where the deferred hooks of unit1 are cleared then in the process of clearing unit2 a deferred hook is triggerred in unit1. To fix this do not block on the wl status message after the hook test completes. Also, make sure that an action failure is fatal to surface any issues.