fix: actions need hooks/
Some charm builds will put additional functionality into a subdirectory of hooks/ (eg designate-bind creates a hooks/relations directory.)
However, when running an action, those are run from “actions/pause” not as “hooks/config-changed”. Which means that they cannot find the “relations” directory to import it.
We could: a) symlink all the extra things from actions/* to point at hooks/* b) include hooks as part of the import path c) change so that all of those extra libraries are put into somewhere in ‘lib’ instead of somewhere in hooks/*.
This patch chooses (b).
This should fix: https://bugs.launchpad.net/charm-designate-bind/+bug/2107591
once it is rebuilt with this version of layer openstack.
Closes-Bug: 2107591 Change-Id: Ib1f0893bbff00ffc28a80162dd5472bfb64a3033 Signed-off-by: Arif Ali arif-ali@ubuntu.com
版权所有:中国计算机学会技术支持:开源发展技术委员会
京ICP备13000930号-9
京公网安备 11010802047560号
Overview
This layer provides the base OpenStack configuration options and dependencies for authoring OpenStack Charms. Typically you won’t use this layer directly. The openstack-api or openstack-principle layers which consume this layer are probably more interesting as layers to directly use.
Where is the code?
The code for this module is held in the charms.openstack module which is developed at the following location: