Skip to content

CFE-4694: String replace lists#6219

Open
victormlg wants to merge 2 commits into
cfengine:masterfrom
victormlg:string_replace_lists
Open

CFE-4694: String replace lists#6219
victormlg wants to merge 2 commits into
cfengine:masterfrom
victormlg:string_replace_lists

Conversation

@victormlg

Copy link
Copy Markdown
Contributor

No description provided.

Comment thread libpromises/evalfunction.c Fixed
Comment thread libpromises/evalfunction.c Fixed
Comment thread libpromises/evalfunction.c Fixed
Comment thread libpromises/evalfunction.c Fixed
Comment thread libpromises/evalfunction.c Fixed
Comment thread libpromises/evalfunction.c Fixed
Comment thread libpromises/evalfunction.c Fixed
Comment thread libpromises/evalfunction.c Fixed
Comment thread libpromises/evalfunction.c Fixed
Comment thread libpromises/evalfunction.c Fixed
/*********************************************************************/

static FnCallResult FnCallStringReplace(ARG_UNUSED EvalContext *ctx,
static FnCallResult FnCallStringReplace(EvalContext *ctx,
@victormlg victormlg force-pushed the string_replace_lists branch 3 times, most recently from 9bdd8e4 to 619dcd3 Compare July 7, 2026 13:30
victormlg added 2 commits July 7, 2026 16:30
Changelog: Title
Ticket: CFE-4694
Signed-off-by: Victor Moene <victor.moene@northern.tech>
Signed-off-by: Victor Moene <victor.moene@northern.tech>
@victormlg victormlg force-pushed the string_replace_lists branch from 619dcd3 to 0c2db2e Compare July 7, 2026 14:30
return FnReturnNoCopy(ret);
}

/* option == "lists" */

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

assert


# list
"list_replace"
string => string_replace("abcd", "@(match_list)", "@(sub_list)", "lists");

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Try with function calls here; parsejson and expandrange for example.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

3 participants