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

Fixing regression bug. #457

Merged
merged 1 commit into from
Dec 14, 2015
Merged

Fixing regression bug. #457

merged 1 commit into from
Dec 14, 2015

Conversation

zbintliff
Copy link
Contributor

When people are updating from old puppet module the socket is '',
which crashes puppet when it tries to #keys method in the is_to_s
method. Additionally, I think the default change message is good
enough.

Here is how it looks now when upgrading from old puppet module:
Notice: /Stage[main]/Sensu::Client::Config/Sensu_client_config[fqdn]/socket: socket changed '' to '{"bind"=>"128.0.0.1", "port"=>3030}'

Here is how it will look when changing:
Notice: /Stage[main]/Sensu::Client::Config/Sensu_client_config[fqdn]/socket: socket changed {"bind"=>"1.1.1.1", "port"=3030} to '{"bind"=>"128.0.0.1", "port"=>3030}'

When people are updating from old puppet module the socket is '',
which crashes puppet when it tries to #keys method in the is_to_s
method.  Additionally, I think the default change message is good
enough.

Here is how it looks now when upgrading from old puppet module:
`Notice: /Stage[main]/Sensu::Client::Config/Sensu_client_config[fqdn]/socket: socket changed '' to '{"bind"=>"128.0.0.1", "port"=>3030}'`

Here is how it will look when changing:
`Notice: /Stage[main]/Sensu::Client::Config/Sensu_client_config[fqdn]/socket:
 socket changed {"bind"=>"1.1.1.1", "port"=3030} to '{"bind"=>"128.0.0.1", "port"=>3030}'`
@zbintliff
Copy link
Contributor Author

Referencing #447

@jlambert121
Copy link
Contributor

Thanks!

jlambert121 added a commit that referenced this pull request Dec 14, 2015
@jlambert121 jlambert121 merged commit 553994f into sensu:master Dec 14, 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.

2 participants