diff options
author | Lennart Poettering <lennart@poettering.net> | 2013-10-30 18:40:21 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2013-10-30 18:40:21 +0100 |
commit | 88212f7bd19e30d73874aa160e789e300a643860 (patch) | |
tree | 2be8c588d20431565f2eb4637f505758b93c7c1b /src | |
parent | 8201ad81a033aff8526e489300e16c0011451330 (diff) |
nspawn: only pass in slice setting if it is set
Diffstat (limited to 'src')
-rw-r--r-- | src/nspawn/nspawn.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nspawn/nspawn.c b/src/nspawn/nspawn.c index ad0287dbf4..c0f99482c0 100644 --- a/src/nspawn/nspawn.c +++ b/src/nspawn/nspawn.c @@ -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; |