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

Fix $nginx_upstreams_defaults type #1309

Merged
merged 1 commit into from Feb 9, 2019
Merged

Conversation

saz
Copy link
Sponsor Contributor

@saz saz commented Feb 1, 2019

Pull Request (PR) description

In my understanding, $nginx_upstream_defaults should be of type UpstreamDefaults, not UpstreamMemberDefaults

Error: Could not retrieve catalog from remote server: Error 500 on SERVER: Server Error: Evaluation Error: Error while evaluating a Resource Statement, Class[Nginx]: parameter 'nginx_upstream_defaults' unrecognized key 'member_defaults' at /etc/puppetlabs/code/environments/production/private_modules/profile/manifests/nginx.pp:53:3 on node host.example.com

@bastelfreak
Copy link
Member

Could you add some tests, so we know that the issue is fixed?

@bastelfreak bastelfreak added bug Something isn't working needs-tests labels Feb 9, 2019
@alexjfisher
Copy link
Member

@bastelfreak By simple inspection, I think we can be pretty sure this is correct though.

@alexjfisher alexjfisher changed the title fix $nginx_upstream_defaults type Fix $nginx_upstream_defaults type Feb 9, 2019
In my understanding, `$nginx_upstream_defaults` should be of type
`UpstreamDefaults`, not `UpstreamMemberDefaults`.
@bastelfreak
Copy link
Member

ah, looks like we both updated it @alexjfisher :D

@bastelfreak bastelfreak merged commit ca4d5ea into voxpupuli:master Feb 9, 2019
@bastelfreak bastelfreak changed the title Fix $nginx_upstream_defaults type Fix $nginx_upstreams_defaults type Feb 9, 2019
@alexjfisher
Copy link
Member

@saz Thanks for finding this! Sorry for the silly number of force pushes to your PR branch. First I didn't know both @bastelfreak and me were simultaneously working on getting this merged. I also hadn't noticed the parameter got renamed in #1080! :)

Should be correct and merged now. Thanks again.

Rubueno pushed a commit to Rubueno/puppet-nginx that referenced this pull request Oct 19, 2020
Fix `$nginx_upstream_defaults` type
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants