Skip to content

Documented the complete list of unsafe functions for --simulate mode (3.27) - #3811

Merged
nickanderson merged 1 commit into
cfengine:3.27from
nickanderson:simulate-unsafe-functions-3.27
Oct 23, 2026
Merged

nickanderson merged 1 commit into
cfengine:3.27from
nickanderson:simulate-unsafe-functions-3.27

Conversation

@nickanderson

Copy link
Copy Markdown
Member

Backport of #3799.

The --simulate documentation mentioned "unsafe functions" but only gave
execresult() as an example without listing all four unsafe functions.

- Added a comprehensive table of all unsafe functions (execresult,
  execresult_as_data, returnszero, usemodule) to the --simulate section
- Restructured the --simulate section with subheadings for clarity
- Added a "Simulate mode" note to each of the four unsafe function
  reference pages linking back to the --simulate documentation
- Noted that variables depending on unsafe functions will be unresolved
  unless simulate_safe is in the promise's meta attribute

(cherry picked from commit 0aa225f)
@nickanderson

Copy link
Copy Markdown
Member Author

@cf-bottom jenkins please

@cf-bottom

Copy link
Copy Markdown

@nickanderson
nickanderson merged commit 19bcc64 into cfengine:3.27 Oct 23, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants