Skip to content

Conversation

@victormlg
Copy link
Contributor

No description provided.

Ticket: ENT-13303
Signed-off-by: Victor Moene <victor.moene@northern.tech>
Signed-off-by: Victor Moene <victor.moene@northern.tech>
Signed-off-by: Victor Moene <victor.moene@northern.tech>
Signed-off-by: Victor Moene <victor.moene@northern.tech>
@victormlg victormlg force-pushed the boolclassesaguments branch from bd8e22a to 657aa1d Compare January 20, 2026 13:41
@victormlg victormlg requested a review from larsewi January 20, 2026 14:33
OpenLog(default_facility);
SetSyslogFacility(default_facility);

EvalContextClassPutHard(ctx, "any", "source=agent");
Copy link
Contributor

Choose a reason for hiding this comment

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

Please explain why this is redundant in the commit message. It's not clear from looking at the diff.

Comment on lines -253 to -256
else if (strcmp("true", name) == 0)
{
ret = EXPRESSION_VALUE_TRUE;
}
Copy link
Contributor

Choose a reason for hiding this comment

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

Same here. Some explanation would be helpful :)

char vbuff[CF_BUFSIZE];

EvalContextClassPutHard(ctx, "any", "source=agent"); /* This is a reserved word / wildcard */
EvalContextClassPutHard(ctx, "true", "source=agent");
Copy link
Contributor

Choose a reason for hiding this comment

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

The ticket does not mention adding true as a hard class. I wonder if this can get some implications. It should be possible to map the JSON type true to the hard class any when parsing the augments, without adding a new hard class. Whether or not true should be a hard class or not, we can discuss with @olehermanse and @nickanderson .

Copy link
Member

Choose a reason for hiding this comment

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

Yeah, I would be quite wary of introducing such a generic class. My concern woul d be people using it within a bundle as a bundle scoped class for some condition (like pass in tests) that all of the sudden is now always true.

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.

3 participants