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 accidental port changing when using systemd templates. #260

Merged
merged 1 commit into from Jan 30, 2015

Conversation

fxposter
Copy link
Contributor

When you use port.gsub! - you are changing the value port variable
itself, and as long as the value is not local to this method, but
is a part of new_resource record (when it's passed as an array or
string) - the previous code will modify new_resource.port instance
variable.

When you use `port.gsub!` - you are changing the value  port variable
itself, and as long as the value is not local to this method, but
is a part of new_resource record (when it's passed as an array or
string) - the previous code will modify `new_resource.port` instance
variable.
@labria
Copy link

labria commented Jan 15, 2015

+1

tduffield pushed a commit that referenced this pull request Jan 30, 2015
Fix accidental port changing when using systemd templates.
@tduffield tduffield merged commit c0f2110 into sous-chefs:master Jan 30, 2015
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.

None yet

3 participants