Skip to content

Commit

Permalink
allow lxcapi_get_cgroup_item() on lxc-execute containers
Browse files Browse the repository at this point in the history
Containers started with lxc-execute may not have a conf, but
nothing in the implementation of lxcapi_get_cgroup_item()
actually needs/uses it, and it can be useful to get items out
of the containers' cgroup items.

Signed-off-by: Dwight Engen <dwight.engen@oracle.com>
Acked-by: Stéphane Graber <stgraber@ubuntu.com>
  • Loading branch information
Dwight Engen authored and stgraber committed Nov 5, 2013
1 parent 2752ece commit 6502006
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lxc/lxccontainer.c
Expand Up @@ -1977,7 +1977,7 @@ static int lxcapi_get_cgroup_item(struct lxc_container *c, const char *subsys, c
{
int ret;

if (!c || !c->lxc_conf)
if (!c)
return -1;

if (is_stopped(c))
Expand Down

0 comments on commit 6502006

Please sign in to comment.