Issue #2488 has been updated by James Turnbull.

Target version deleted (Statler)


----------------------------------------
Bug #2488: augeas "clear" cannot work / does not work
http://projects.puppetlabs.com/issues/2488

Author: Till Maas
Status: Closed
Priority: Normal
Assigned to: Bryan Kearney
Category: augeas
Target version: 
Affected version: 0.24.8
Keywords: 
Branch: 


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. :-(


-- 
You have received this notification because you have either subscribed to it, 
or are involved in it.
To change your notification preferences, please click here: 
http://projects.puppetlabs.com/my/account

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Bugs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/puppet-bugs?hl=en.

Reply via email to