Issue #16112 has been updated by Jacob  McCann.

I've submitted a pull request to address this issues in puppet:

[https://github.com/puppetlabs/puppet/pull/1067](https://github.com/puppetlabs/puppet/pull/1067)

However, it seems that currently the augeas ruby bindings does not let you call 
clearm.  I've made changes to that as well and created a pull request for that 
project to include it:

[https://github.com/lutter/ruby-augeas/pull/5](https://github.com/lutter/ruby-augeas/pull/5)

I have tested both of these changes in my environment and it seems to be 
working as expected.

Thanks!
----------------------------------------
Bug #16112: augeas command 'clearm' returns 'Unknown command'
https://projects.puppetlabs.com/issues/16112#change-69803

Author: Jacob  McCann
Status: Unreviewed
Priority: Normal
Assignee: 
Category: augeas
Target version: 
Affected Puppet version: 
Keywords: 
Branch: 


When trying to use clearm in augeas provider I get the following error:

<pre>
err: 
/Stage[main]/Ntp/Bootloader::Add_bootloader_grub_parm[timekeeping_use_tsc]/Augeas[boot_grub_menulst_kernel_param_timekeeping_use_tsc]:
Could not evaluate: Unknown command clearm
</pre>

But this is a valid command:

<pre>
augtool> help clearm
  COMMAND
    clearm - clear the value of multiple nodes

  SYNOPSIS
    clearm <BASE> <SUB>

  DESCRIPTION
    Clear multiple nodes values in one operation. Find or create a node 
matching SUB
    by interpreting SUB as a path expression relative to each node matching
    BASE. If SUB is '.', the nodes matching BASE will be modified.

  OPTIONS
     <BASE>    the base node
     <SUB>     the subtree relative to the base
</pre>

This is with the latest stable of augeas, 0.10.0.


-- 
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