diff options
author | Travis Fields <travis@puppetlabs.com> | 2014-06-23 22:47:03 -0700 |
---|---|---|
committer | Travis Fields <travis@puppetlabs.com> | 2014-06-23 22:47:03 -0700 |
commit | 64f0ae2269be8b98d2d028dcb6a732be67b0f3a6 (patch) | |
tree | ac4d374493dc31708b6a92ed220140ff1df4cb10 /lib | |
parent | 0427248cf0f93b4ec9b371616b335b4918066cbb (diff) |
Increase resilience if lookup var comes back with nil object
Diffstat (limited to 'lib')
-rw-r--r-- | lib/puppet/parser/functions/has_interface_with.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/puppet/parser/functions/has_interface_with.rb b/lib/puppet/parser/functions/has_interface_with.rb index 7f150a7..927b0df 100644 --- a/lib/puppet/parser/functions/has_interface_with.rb +++ b/lib/puppet/parser/functions/has_interface_with.rb @@ -25,7 +25,7 @@ has_interface_with("lo") => true interfaces = lookupvar('interfaces') # If we do not have any interfaces, then there are no requested attributes - return false if (interfaces == :undefined) + return false if (interfaces == :undefined || interfaces.nil?) interfaces = interfaces.split(',') |