Hi everyone, I've started testing the autoregistration feature to see how it works. It functions correctly when I add the metadata to the host's agent configuration file. However, the issue arises when I update an existing host's configuration file and add the metadata (in my case, 'Windows'). When I update the configuration file, the host autoregisters even if the host's name already exists in the database. As a result, I end up with the same host appearing twice in the list.
Is there a way to enforce a condition where, if the host's metadata contains 'Windows' and the hostname is not already registered, then the operations are performed?
Is there a way to enforce a condition where, if the host's metadata contains 'Windows' and the hostname is not already registered, then the operations are performed?