Skip to content

Latest commit

 

History

History
36 lines (25 loc) · 877 Bytes

callstack_promisers.markdown

File metadata and controls

36 lines (25 loc) · 877 Bytes
layout title published tags
default
callstack_promisers
true
reference
internal functions
functions
callstack_promisers
call
stack
promisers
debugging

[%CFEngine_function_prototype()%]

Description: Return the promisers along the call stack for the current promise.

[%CFEngine_function_attributes()%]

This is a call stack inspection function and the specific content may be tied to a specific CFEngine version. Using it requires writing code that takes the specific CFEngine version into account.

The returned data container is a slist of promiser names. It's a much simpler version of callstack_callers() intended for quick debugging.

Example:

    vars:
      "my_promisers" slist => callstack_promisers();

Output:

    { "my_promisers" }

History: Introduced in CFEngine 3.9

See also: callstack_callers()