diff options
author | Rafał Miłecki <rafal@milecki.pl> | 2017-11-30 11:04:53 +0100 |
---|---|---|
committer | Rafał Miłecki <rafal@milecki.pl> | 2017-12-06 09:58:17 +0100 |
commit | 650704c4258c0e02fc3519cb8a45728ea14eac9a (patch) | |
tree | 0061ab08743008b380bdf871e7ccc7b8b86a9f19 /net | |
parent | 55e530747f3543dec326ab057249b52d50431916 (diff) |
rpcd-mod-lxc: info: return NOT_FOUND if container doesn't exist
It allow distinction between not existing and stopped container. So far
querying for not existing container was resulting in:
> ubus call lxc info '{ "name": "foo" }'
{
"name": "foo",
"state": "STOPPED",
"ips": [
]
}
Now it's an error and it matches lxc-info command line:
> ubus call lxc info '{ "name": "foo" }'
Command failed: Not found
> lxc-info --name foo
foo doesn't exist
Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
Diffstat (limited to 'net')
0 files changed, 0 insertions, 0 deletions