rke2: fix validation message for agent token requirement
The message incorrectly stated that 'agentToken' or 'agentTokenFile' should be set when role is 'agent', which is misleading. Corrected it to state that these should NOT be set for the 'agent' role.
This commit is contained in:
committed by
Valentin Gagarin
parent
4eb66675aa
commit
158d441ea0
@@ -228,7 +228,7 @@ in
|
||||
}
|
||||
{
|
||||
assertion = cfg.role == "agent" -> !(cfg.agentTokenFile != null || cfg.agentToken != "");
|
||||
message = "agentToken or agentTokenFile should be set if role is 'agent'";
|
||||
message = "agentToken or agentTokenFile should NOT be set if role is 'agent'";
|
||||
}
|
||||
{
|
||||
assertion = cfg.role == "agent" -> !(cfg.disable != [ ]);
|
||||
|
||||
Reference in New Issue
Block a user