incorrect format of a reply from control agent when command is not allowed
When we are communicating with Kea or CA using http or https json reply is send as list, eg: cmd:
{'arguments': {}, 'command': 'config-get'}
reply:
[
{
"arguments": {
"Control-agent": {
....
}
},
"result": 0
}
]
also when reporting error eg:
{'arguments': {'Control-agent': {...},
'command': 'config-set'}
reply:
[
{
"result": 1,
"text": "some libraries are still opened"
}
]
but when command is rejected via RBAC hook it's sending just dict:
{'arguments': {}, 'command': 'status-get'}
reply:
{
"result": 403,
"text": "Forbidden"
}
which is inconsistent with all other messages, making management via script not very pleasant.