Bug #2488
augeas "clear" cannot work / does not work
| Status: | Closed | Start date: | 08/03/2009 | |
|---|---|---|---|---|
| Priority: | Normal | Due date: | ||
| Assignee: | % Done: | 0% |
||
| Category: | augeas | |||
| Target version: | - | |||
| Affected Puppet version: | 0.24.8 | Branch: | ||
| Keywords: | ||||
| Votes: | 0 |
Description
The ruby bindings of augeas do not provide a clear method only for about one month and only in the SCM, therefore this cannot work, yet it is mentioned in the type reference:
| clear [PATH] Keeps the node at PATH, but removes the value.
Also this explanation is probably wrong, this is the help text from augtool:
clear <PATH>
Set the value for PATH to NULL. If PATH is not in the tree yet,
it and all its ancestors will be created. These new tree entries
will appear last amongst their siblings
So clear [PATH] does not only keep a node, but also creates one. It would probably be better to use the official help text here instead of an own one to reduce synchronization errors, but the ruby bindings do also not provide the official help text. :–(
History
Updated by Till Maas almost 3 years ago
ruby bindings bug report about the missing create method: https://fedorahosted.org/augeas/ticket/84
btw. “set
Updated by James Turnbull almost 3 years ago
- Category set to augeas
- Status changed from Unreviewed to Needs Decision
- Assignee set to Bryan Kearney
- Target version set to 2.6.0
Updated by Bryan Kearney almost 3 years ago
I will work with David to get a new build of hte ruby bindings out. Can you please open another bug with the set issues so that I can look at them?
thank you.
— bk
Updated by James Turnbull over 2 years ago
- Target version changed from 2.6.0 to 2.7.x
Updated by Bryan Kearney over 2 years ago
- Status changed from Needs Decision to In Topic Branch Pending Review
The API is now in the ruby bindings, and I have upated the documentation to reflect what clear actually does. Thank you!.
Updated by James Turnbull over 2 years ago
- Status changed from In Topic Branch Pending Review to Closed
I am going to close this – please re-open if it doesn’t answer your question.
Updated by James Turnbull almost 2 years ago
- Target version deleted (
2.7.x)