Skip to content

Instantly share code, notes, and snippets.

@hlindberg
Last active January 13, 2023 12:48
Show Gist options
  • Save hlindberg/11a683c504172de7f2e3d455323d0d1f to your computer and use it in GitHub Desktop.
Save hlindberg/11a683c504172de7f2e3d455323d0d1f to your computer and use it in GitHub Desktop.
Puppet::Functions.create_function(:env_data) do
# @since 4.8.0
dispatch :env_data do
param 'Struct[{}]', :options
param 'Puppet::LookupContext', :context
end
def env_data(options, context)
ENV.to_h
end
end
@hlindberg
Copy link
Author

The function is now updated to not accept any options. Earlier it required a "path".

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