Knife node list VS knife exec -E 'nodes.all.each {|n| puts “#{}”}'

Dear community,

I hope this finds you all well. Curiosity is killing me so decided to ask the experts :blush:

I'm trying to understand why the output of

knife node list


knife exec -E 'nodes.all.each {|n| puts "#{}"}'

Don't give me the same node names. I would expect the above commands to show me the same names but at the moment there are discrepancies, seems like any new node isn't picked up in the second command ( knife exec.. )

Any idea what might cause this and how to debug it?

Thanks in advance