Skip to content

using hiera-http with puppet 4.10 yields Error while evaluating a Function Call, HTTP request path is empty #48

@tosmi

Description

@tosmi

this has happens because order_override is an empty array [] in my case. dunno where this comes from.

the following code (http_backend.rb line 52) in hiera-http inserts the empty array at position 0 in the paths array:

paths.insert(0, order_override) if order_override

if order_override is an empty array we end up with

[ [ ],"/first", "/second" ]

end the first element [] gets pass all the way down to net/http, which complains rightfully about the empty path.

as a quick fix i changed this to

paths.insert(0, order_override).flatten! if order_override

will open a pull request for this as well.

thanks
toni

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions