Jira (PUP-1518) Custom Facts issue: Could not retrieve test: undefined method `get_fact_value' for #Facter::Util::Resolution:0x007ffec21d35d0
Title: Message Title Vito Mule commented on an issue Re: Custom Facts issue: Could not retrieve test: undefined method `get_fact_value' for #Facter::Util::Resolution:0x007ffec21d35d0 Hello, no I don't have multiple version of facter on my machine. Cheers Add Comment Puppet / PUP-1518 Custom Facts issue: Could not retrieve test: undefined method `get_fact_value' for #Facter::Util::Resolution:0x007ffec21d35d0 wrote a custom fact named test.rb with this code inside: #!/usr/bin/ruby # def get_test() check_install = Dir.exists?('/etc/test') return check_install endFacter.add('test') do setcode do get_fact_value('test', $WEEK, 'get_test') end end id I run #sudo facter -p, it works but if I run sudo factor -p ... This message was sent by Atlassian JIRA (v6.1.4#6159-sha1:44eaede) -- You received this message because you are subscribed to the Google Groups Puppet Bugs group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com. To post to this group, send email to puppet-bugs@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-bugs. For more options, visit
Jira (FACT-201) Custom Facts issue: Could not retrieve test: undefined method `get_fact_value' for #Facter::Util::Resolution:0x007ffec21d35d0
Title: Message Title Vito Mule updated an issue Facter / FACT-201 Custom Facts issue: Could not retrieve test: undefined method `get_fact_value' for #Facter::Util::Resolution:0x007ffec21d35d0 Change By: Vito Mule wroteacustomfactnamedtest.rbwiththiscodeinside:#!/usr/bin/ruby#defget_test()check_install=Dir.exists?('/etc/test')returncheck_installendFacter.add('test')dosetcodedoget_fact_value('test',$WEEK,'get_test')endendidIrun#sudofacter-p,itworksbutifIrunsudofactor-ptestigotthiserror:Couldnotretrievetest:undefinedmethod`get_fact_value'for#Facter::Util::Resolution:0x007ffec21d35d0 Renamingthefactfromtest.rbtosomethingelsefixedtheissue,butIthinkit'sabugthisbehavior. Add Comment This message was sent by Atlassian JIRA (v6.1.4#6159-sha1:44eaede) -- You received this message because you are subscribed to the Google Groups Puppet Bugs group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com. To post to this group, send email to puppet-bugs@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-bugs. For more options, visit https://groups.google.com/groups/opt_out.
Jira (FACT-201) Custom Facts issue: Could not retrieve test: undefined method `get_fact_value' for #Facter::Util::Resolution:0x007ffec21d35d0
Title: Message Title Vito Mule created an issue Facter / FACT-201 Custom Facts issue: Could not retrieve test: undefined method `get_fact_value' for #Facter::Util::Resolution:0x007ffec21d35d0 Issue Type: Bug Assignee: Eric Sorenson Created: 13/Jan/14 11:31 AM Environment: MAC OS X 10.9.1, ruby 2.0.0p247 (2013-06-27 revision 41674) [universal.x86_64-darwin13], puppet --version 3.2.3 facter --version 1.7.2 Labels: facter Priority: Normal Reporter: Vito Mule wrote a custom fact named test.rb with this code inside: #!/usr/bin/ruby # def get_test() check_install = Dir.exists?('/etc/test') return check_install end Facter.add('test') do setcode do get_fact_value('test', $WEEK, 'get_test') end end id I run #sudo facter -p, it works but if I run sudo factor -p test i got this error: Could not retrieve test: undefined method `get_fact_value' for #Facter::Util::Resolution:0x007ffec21d35d0