Increase resilience if lookup var comes back with nil object
This commit is contained in:
parent
0427248cf0
commit
64f0ae2269
1 changed files with 1 additions and 1 deletions
|
@ -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(',')
|
||||
|
||||
|
|
Loading…
Reference in a new issue