~dpb/pyjuju/dont-proxy-https

« back to all changes in this revision

Viewing changes to juju/unit/lifecycle.py

merge unit-rel-lifecycle-start-invoker [r=hazmat][f=992329]

Ensure Invoker.start is called from UnitRelationLifecycle usage.

Show diffs side-by-side

added added

removed removed

Lines of Context:
731
731
 
732
732
    @inlineCallbacks
733
733
    def _execute_hook(self, invoker, hook_name, change):
 
734
        yield invoker.start()
734
735
        hook_path = os.path.join(
735
736
            self._unit_dir, "charm", "hooks", hook_name)
736
737
        yield self._run_lock.acquire()