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

refine worker_processes validation #540

Closed
wants to merge 1 commit into from

Conversation

xjchengo
Copy link

No description provided.

@@ -93,7 +93,7 @@
) inherits ::nginx::params {

### Validations ###
if (!is_string($worker_processes)) and (!is_integer($worker_processes)) {
if (!is_string($worker_processes) or ($worker_processes != 'auto')) and (!is_integer($worker_processes)) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! Maybe remove the !is_string($worker_processes) in that case since it's redundant with the new condition you added.

@3flex 3flex closed this in #590 Apr 10, 2015
cegeka-jenkins pushed a commit to cegeka/puppet-nginx that referenced this pull request Oct 23, 2017
slm0n87 pushed a commit to slm0n87/puppet-nginx that referenced this pull request Mar 7, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants