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

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

vs

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

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