Update agent_registration.rb

Fix node search