Provider throwing errors

33 views
Skip to first unread message

Peter Berghold

unread,
Mar 2, 2015, 11:18:56 AM3/2/15
to puppet-users
Can someone look at this code?
 def get_bind_cfg_value(key)
   Puppet.warning("entered get_bind_cfg")
   if Facter.value('multibind_present')
       if Facter.value('multibind_configured')
         configuration=Facter.value('multibind_configuration')
         instance_cfg = configuration[resource(:name)]
         if instance_cfg
           return instance_cfg[key]
         else
           return :absent
         end # if instance_cfg
       else
         return :absent
       end # configured
     else
       return :absent
     end # if present
 end # def

I *believe* this is where I'm getting an error thrown such that:
Error: /Stage[main]/Multibind::Mob_oam_svc/Bindconfigure[MOB_OAM_SVC]: Could not evaluate: wrong number of arguments (1 for 0)


Felix Frank

unread,
Mar 3, 2015, 6:58:01 AM3/3/15
to puppet...@googlegroups.com
On 03/02/2015 05:18 PM, Peter Berghold wrote:
>
> I *believe* this is where I'm getting an error thrown such that:
> Error: /Stage[main]/Multibind::Mob_oam_svc/Bindconfigure[MOB_OAM_SVC]:
> Could not evaluate: wrong number of arguments (1 for 0)

Oh you do? :-)

Please run with --trace to confirm your suspicion.

HTH,
Felix

Peter Berghold

unread,
Mar 3, 2015, 8:45:19 AM3/3/15
to puppet...@googlegroups.com
I should have followed up, I found the problem using old fashioned "moving fence" techniques.  Don't remember the actual code I found but I redid some of the logic and it works now. 

--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/54F5A1B9.9060308%40alumni.tu-berlin.de.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages