Adjust response payload, messages and validations for /scripts/run/* endpoints. (#13607)
This commit is contained in:
@@ -625,7 +625,7 @@ func (a *agent) execScripts(execIDs []string, orbitClient *service.OrbitClient)
|
||||
// send a no-op result without executing if script exec is disabled
|
||||
if err := orbitClient.SaveHostScriptResult(&fleet.HostScriptResultPayload{
|
||||
ExecutionID: execID,
|
||||
Output: "script execution disabled",
|
||||
Output: "Scripts are disabled",
|
||||
Runtime: 0,
|
||||
ExitCode: -2,
|
||||
}); err != nil {
|
||||
|
||||
Reference in New Issue
Block a user