I was able to resolve the issue with below workaround:

-      prop_sym = Facter.puppetversion.to_i >= 3 ? prop.intern : symbolize(prop)
+      prop_sym = Facter.value(:puppetversion).to_i >= 3 ? prop.intern : 
symbolize(prop)


However i am getting a warning message when i run facter
% facter
ldapname is deprecated and will be removed in a future version

Puppet master: 3.6.2
Puppet agent: 3.6.1
Facter: 2.0.1

Any way to suppress the warning?


On Friday, 6 June 2014 14:31:59 UTC+5:30, Felix.Frank wrote:
>
> Hi, 
>
> what is the version of 
> - puppet on the master 
> - puppet on the agent 
> - facter on the agent 
>
> On 06/06/2014 10:46 AM, smartconnect wrote: 
> > 
> > I was able to run netdev_stdlib_junos module on Puppet 2.7 
> > But on Puppet 3.6.1 i am facing below issue 
> ... 
> > Error: Could not retrieve 
> > catalog from remote server: Could not intern from text/pson: Could not 
> > autoload puppet/type/netdev_interface: Could not autoload 
> > puppet/provider/netdev_interface/junos: undefined method `Facter' for 
> > Puppet::Type::Netdev_interface::ProviderJunos_switch:Class 
>

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/20929a6e-eac0-4060-bdfd-01a17121df00%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to