Revision 7a78b0a1
Added by François ARMAND almost 7 years ago
inventory-api/src/main/scala/com/normation/inventory/domain/AgentTypes.scala | ||
---|---|---|
case invalidJson =>
|
||
tokenDefault match {
|
||
case Some(default) => Full(PublicKey(default))
|
||
case None => Failure(s"Invalid value for security token, ${compactRender(invalidJson)}, and no public key were stored")
|
||
case None =>
|
||
val error = invalidJson match {
|
||
case JNothing => "no value define for security token"
|
||
case x => compactRender(invalidJson)
|
||
}
|
||
Failure(s"Invalid value for security token: ${error}, and no public key were stored")
|
||
}
|
||
}
|
||
}
|
Also available in: Unified diff
Fixes #10994: Error at node list display/deployement status on fresh Rudder 4.2 install