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 undefined method `sort_by' error from vhost_location_empty.erb #93

Merged
merged 1 commit into from
Jul 21, 2013

Conversation

xcompass
Copy link
Contributor

I got the following error:

Filepath: /etc/puppet/modules/common/nginx/templates/vhost/vhost_location_empty.erb
Line: 2
Detail: undefined method `sort_by' for nil:NilClass
at /etc/puppet/modules/common/nginx/manifests/resource/location.pp:133 on node xxxxxx

In the template, we should check if the variable is defined before use it.

In the template, we should check if the variable is defined before use it
jfryman pushed a commit that referenced this pull request Jul 21, 2013
Fix undefined method `sort_by' error from vhost_location_empty.erb
@jfryman jfryman merged commit 143d612 into voxpupuli:master Jul 21, 2013
@jfryman
Copy link
Contributor

jfryman commented Jul 21, 2013

❤️

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