here is what I’m trying to do
if node['kernel']['cs_info']['manufacturer'] == 'VMware, Inc.'
network = "0xc"
else
network = "0x5"
end
not_if {node['network']['interfaces']['#{network}']['instance']['net_connection_id'] =~ /companynic/ }
This is failing, I’m new to Ruby, but I’d like to replace a node property string with a variable.