mirror of
https://git.proxmox.com/git/mirror_lxc
synced 2025-08-06 15:44:47 +00:00
lxccontainer: do_lxcapi_is_running()
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
This commit is contained in:
parent
5bddcb62d2
commit
1b61062fa7
@ -479,9 +479,11 @@ static bool do_lxcapi_is_running(struct lxc_container *c)
|
||||
|
||||
if (!c)
|
||||
return false;
|
||||
|
||||
s = do_lxcapi_state(c);
|
||||
if (!s || strcmp(s, "STOPPED") == 0)
|
||||
return false;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user