Increase resilience if lookup var comes back with nil object

This commit is contained in:
Travis Fields 2014-06-23 22:47:03 -07:00
parent 0427248cf0
commit 64f0ae2269

View file

@ -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(',')