We try to automation authorized the agent with token feature
the logic is: scan for the "buildagents/unauthorized" to get the agent ip & port
use "tokens/authorize" to register the agent
but the different with operation on the UI, each round register agent (same ip & port & hostname) it will generate the new "id" of agent
the agent can be query from "buildagents/active" and "buildagents/unauthorized"
it almost like when load "tokens/authorize", it is not remove same agent from "buildagents/unauthorized"
or maybe "tokens/authorize" is not query the older id in "buildagents/unauthorized"
Description
We try to automation authorized the agent with token feature
the logic is: scan for the "buildagents/unauthorized" to get the agent ip & port
use "tokens/authorize" to register the agent
but the different with operation on the UI, each round register agent (same ip & port & hostname) it will generate the new "id" of agent
the agent can be query from "buildagents/active" and "buildagents/unauthorized"
it almost like when load "tokens/authorize", it is not remove same agent from "buildagents/unauthorized"
or maybe "tokens/authorize" is not query the older id in "buildagents/unauthorized"