Skip to content

/agents/:agent_id/upgrade returns output not in JSON #103

@jesuslinares

Description

@jesuslinares

The agent is upgraded, but the API shows an error.

# curl -u foo:bar -X PUT -k "http://127.0.0.1:55000/agents/005/upgrade?pretty"
{
   "error": 2,
   "message": "Command output not in JSON"
}
# curl -u foo:bar -X GET -k "http://127.0.0.1:55000/agents/005/upgrade_result?pretty"
{
   "error": 0,
   "data": "Agent upgraded successfully"
}

Metadata

Metadata

Assignees

Labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions