-
Notifications
You must be signed in to change notification settings - Fork 582
(CONT-1023) - Enhancing deferrable_epp to support nested hash #1359
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
Conversation
dea98f1
to
06bcac6
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This feels more more future proof to me, thanks! Only a minor fix and it's 💯 to me!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
# | ||
# Output : ["value1", "value2.1"] | ||
# | ||
Puppet::Functions.create_function(:nested_values) do |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What happened to all new functions being namespaced??
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Suggest namespacing it without creating a shim as this hasn't made it to a release yet.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Damned! Yes, to all of this 😪
describe 'nested_values' do | ||
# please note that these tests are examples only | ||
# you will need to replace the params and return value | ||
# with your expectations |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These comments should not have made it in.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
addressed in #1363.
# frozen_string_literal: true | ||
|
||
# This function will return list of Hash values, the return value will be Array | ||
# NOTE : This function is expecting only Hash and return value will be Array |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These two lines could be reworded to remove the repetition about the return value.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
addressed here
Summary of Issue
Currently
stdlib::deferrable_epp
doesn't support well if the input variable is nested hash hasDeferrable
value .Change
Adding support to evaluate the nested hash values to add support for nested hash.