Details
-
Type:
Bug
-
Status: Done
-
Priority:
Higher
-
Resolution: Fixed
-
Affects Version/s: None
-
Component/s: Documentation
-
Labels:None
-
Story Points:0
Description
The example at https://docs.cfengine.com/docs/master/examples-example-snippets-promise-patterns-example_edit_motd.html is out of date and doesn't work.
- It should use the _main_/main bundle functionality, the template file is not in the folder where it says it should be.
- Also is
## In order to get package inventory, we need to have a legacy package ## promise.
still the case? And does it really have to be a legacy package promise? Is it even?
- Last but not least, it shouldn't use mustache template with no template_data (and thus use super-slow datastate() functionality).
I think this example is very important as a it provides some very nice functionality, shows many concepts and is probably a typical entry point for starting with CFEngine.