Here's another problem which I ran into today:

When running puppetd with a puppetmaster which is 6 mongrel instances
load balanced with apache, I get:
/usr/ops/lib/ruby/site_ruby/1.8/puppet/network/format_handler.rb:87:in
`format_to_canonical_name': No format match the given format name or
mime-type (text/html) (ArgumentError)

If I stop apache and fire up the puppetmaster as normal, puppetd
doesn't fail with the above error.

Inspecting the code where it fails makes me scratch my head (code
included at the bottom). The variable "format" is, according to the
error message, "text/html" - but that should have matched then when
clause "%r{\w+/\w+}".

Can someone help me shed some light on this?

cheers,
/Martin

puppet/network/format_handler.rb:

    # Return a format name given:
    #  * a format name
    #  * a mime-type
    #  * a format instance
    def self.format_to_canonical_name(format)
        case format
        when Puppet::Network::Format
            out = format
        when %r{\w+/\w+}
            out = mime(format)
        else
            out = format(format)
        end
        raise ArgumentError, "No format match the given format name or
mime-type
 (%s)" % format if out.nil?
        out.name
    end


cheers,
/Martin
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to puppet-users@googlegroups.com
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to