Title: Message Title
Eric Sorenson commented on an issue
Facter / Bug FACT-468
undefined method `ipaddress' for Facter:Module
I have the following code in my puppet setup:

{code:ruby}
def get_mysql_id
    mysql_id = nil;
    mysql_id = Facter.ipaddress.split('.').inject(0) {|total,value| (total << 8 ) + value.to_i}
end

Facter.add("mysql_server_id") do
    setcode do
        get_mysql_id
    end
end
{code}

This has just started generating this error since facter...

--
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/d/optout.

Reply via email to