I'm trying to write an if statement that compares two variables in a puppet erb template:
<% @array_of_ip_addresses.each_with_index do |ip, idx| -%>
<% if @ip == @ipaddress_eth0 -%>
<%= "doing something with #{idx}" -%>
<% end -%>
<% end -%>
I cannot figure out why, but the condition on my if statement keeps returning false (needless to say I confirmed there should be a match).
What dumb thing am I missing?