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: do not print properies if they are absent. #84

Merged
merged 3 commits into from
Feb 4, 2015

Conversation

jordiclariana
Copy link
Contributor

The previous check was wrong because the "provider.send(propery)" returns a string and was always true.

The previous check was wrong because the "provider.send(propery)" returns a string and was always true.
@adrienthebo
Copy link
Member

Good catch! Dis this take into account the fact that absent could also be a symbol?

@jordiclariana
Copy link
Contributor Author

I thinks "absent" cant never be a value for address, netmask or mtu, that's why I discarted it.
Also, I realized that sometimes the provider.send(property) needs to be covnerted to string (.to_s). I don't know why, but it just happend some times, if not, a ruby error is raised.

adrienthebo added a commit that referenced this pull request Feb 4, 2015
Fix: do not print properies if they are absent.
@adrienthebo adrienthebo merged commit e4e4d43 into voxpupuli:master Feb 4, 2015
@adrienthebo
Copy link
Member

Thanks!

jordiclariana pushed a commit to trovitsys/puppet-network that referenced this pull request Mar 19, 2015
Fix: do not print properies if they are absent.
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