Bug 535819 (RHQ-2476)
| Summary: | Find another way of mapping augeas nodes to rhq properties | ||
|---|---|---|---|
| Product: | [Other] RHQ Project | Reporter: | Lukas Krejci <lkrejci> |
| Component: | Plugins | Assignee: | RHQ Project Maintainer <rhq-maint> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | |
| Severity: | medium | Docs Contact: | |
| Priority: | high | ||
| Version: | unspecified | Keywords: | FutureFeature, Improvement |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | All | ||
| OS: | All | ||
| URL: | http://jira.rhq-project.org/browse/RHQ-2476 | ||
| Whiteboard: | |||
| Fixed In Version: | 1.4 | Doc Type: | Enhancement |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2010-05-27 08:12:22 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
Lukas Krejci
2009-10-26 15:20:00 UTC
Maybe we should keep using the names as the default impl of this new API, e.g.:
AugeasConfigurationComponent:
protected String getAugeasNodeExpression(PropertyDefinition propDef) {
return propDef.getName();
}
CronTabComponent:
@Override
protected String getAugeasNodeExpression(PropertyDefinition propDef) {
return NODE_EXPRESSION_MAP.get(propDef.getName());
}
That way we can keep the mapping metadata in the descriptor for the simpler cases.
Yes, I have it already implemented like that. protected String getAugeasPathRelativeToParent(PropertyDefinition propDef, AugeasNode parentNode, Augeas augeas); with the default implementation as you suggested... This is in my local branch, will commit it soonish with the updates to the cron plugin... This bug was previously known as http://jira.rhq-project.org/browse/RHQ-2476 mass add of key word FutureFeature to help track Lukas, please close if this is done/out of date. This has been in the code base for some time now. |