1
0
mirror of https://github.com/systemd/systemd.git synced 2024-10-28 11:55:44 +03:00

nspawn: only pass in slice setting if it is set

This commit is contained in:
Lennart Poettering 2013-10-30 18:40:21 +01:00
parent 8201ad81a0
commit 88212f7bd1

View File

@ -1191,7 +1191,7 @@ static int register_machine(void) {
"container",
(uint32_t) 0,
strempty(arg_directory),
1, "Slice", "s", strempty(arg_slice));
!isempty(arg_slice), "Slice", "s", arg_slice);
if (r < 0) {
log_error("Failed to register machine: %s", error.message ? error.message : strerror(-r));
return r;