Actions
Bug #10743
closedDynamic group search not available on boolean node property value
Status:
Rejected
Priority:
N/A
Assignee:
-
Category:
Web - Nodes & inventories
Target version:
-
Pull Request:
Severity:
Minor - inconvenience | misleading | easy workaround
UX impact:
User visibility:
Operational - other Techniques | Technique editor | Rudder settings
Effort required:
Priority:
30
Name check:
Fix check:
Regression:
Description
If a simple node property is added via the GUI, example: "install_fail2ban" is set to "true", this expression is not searchable via a dynamic group query, that is built as "[Properties] [Name=Value] [=] [install_fail2ban=true]". This is probably because "true" is not a string.
It works if the property's value is a string, like "yes".
However, if it's not a boolean, the node property cannot be used in a mustache template with {{#vars.node.properties.install_fail2ban}}
.
Current workaround is to create a dynamic group based on the search "install_fail2ban=yes", and use the group's class definition in the mustache template like {{#classes.group_install_fail2ban_software}}
.
Updated by François ARMAND over 7 years ago
- Priority changed from 0 to 17
Seems to be linked to: #9299
Updated by François ARMAND over 7 years ago
- Related to Bug #9299: Extend groups search capabilities for complex JSON Properties / JsonPath added
Updated by Benoît PECCATTE over 7 years ago
- Category set to Web - Nodes & inventories
Updated by François ARMAND about 7 years ago
- Related to Bug #10599: Impossible to search or build groups based on JSON values in node properties added
Updated by François ARMAND about 7 years ago
- Status changed from New to Rejected
Updated by François ARMAND about 7 years ago
- Related to deleted (Bug #10599: Impossible to search or build groups based on JSON values in node properties)
Updated by François ARMAND about 7 years ago
- Is duplicate of Bug #10599: Impossible to search or build groups based on JSON values in node properties added
Actions