This is causing the elasticsearch::discovery recipe to raise an error because it's fetching the ip addresses from this attribute and then trying to sort them
The real issue is in the ES recipe which doesn't check if the attribute is nil, it only checks if the attribute exists.
Workaround was to use the node['ipaddress'] attribute instead