Dynamically registering reactive handlers at runtime
Merlijn Sebrechts
merlijn.sebrechts at gmail.com
Fri Feb 12 15:55:20 UTC 2016
Hi all
We have a layer that can install a number of different packages. It decides
at runtime which packages will be installed. This layer uses the `apt`
layer which sets a state `apt.installed.<packagename>`.
We want to react to this installed state, but we don't know what the
packagename will be beforehand. This gets decided at runtime. Therefore, we
can't put it in a @when() decorator.
Is there a way to dynamically register handlers at runtime?
Kind regards
Merlijn
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/juju/attachments/20160212/d4cbe194/attachment.html>
More information about the Juju
mailing list