summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2013-10-30 18:40:21 +0100
committerLennart Poettering <lennart@poettering.net>2013-10-30 18:40:21 +0100
commit88212f7bd19e30d73874aa160e789e300a643860 (patch)
tree2be8c588d20431565f2eb4637f505758b93c7c1b /src
parent8201ad81a033aff8526e489300e16c0011451330 (diff)
nspawn: only pass in slice setting if it is set
Diffstat (limited to 'src')
-rw-r--r--src/nspawn/nspawn.c2
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;