On Sep 9, 5:35 pm, Martin Englund <[email protected]> wrote:
> 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+}".
>
I'm one step closer: I've figured out that mime("text/html") returns
nil, so now I need to figure out how to get my apache reverse proxy to
let puppetd know it accepts yaml, marshal, raw & json...
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
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Puppet Users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/puppet-users?hl=en
-~----------~----~----~----~------~----~------~--~---