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

Increase resilience if lookup var comes back with nil object #284

Merged
merged 1 commit into from Jun 24, 2014

Conversation

cyberious
Copy link
Contributor

This blows up on Windows 2003 as no interfaces show up in Facter.

has_interface.pp

$a = '192.168.0.15'
$o = has_interface_with('ipaddress', $a)
notice(inline_template('has_interface_with is <%= @o.inspect %>'))

puppet apply yields

Error: undefined method `split' for nil:NilClass at C:/has_interface.pp:2 on node xran6l3uabwistu.mydomain.com
Wrapped exception:
undefined method `split' for nil:NilClass
Error: undefined method `split' for nil:NilClass at C:/has_interface.pp:2 on node xran6l3uabwistu.mydomain.com

@cyberious
Copy link
Contributor Author

http://projects.puppetlabs.com/issues/21518
Target 1.7.3 for facter update to fix Windows server 2003 Interface

underscorgan pushed a commit that referenced this pull request Jun 24, 2014
Increase resilience if lookup var comes back with nil object
@underscorgan underscorgan merged commit d139fcc into puppetlabs:4.3.x Jun 24, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants