Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

`yaml_handler': wrong number of arguments (2 for 1) (ArgumentError) #1

Open
danjung opened this issue Jul 5, 2013 · 1 comment
Open

Comments

@danjung
Copy link

danjung commented Jul 5, 2013

It appears that the yaml_handler() method only accepts one argument, but I think it should have both (key, answer)

danjung pushed a commit to danjung/hiera-http that referenced this issue Jul 10, 2013
…so return the correct data value in yaml_handler
@3nterz
Copy link

3nterz commented Oct 2, 2014

Suggesting the following change:
def yaml_handler(key,answer)
require 'yaml'
YAML.parse(answer)[key].value unless YAML.parse(answer)[key].nil?
end

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants