mirror of
https://github.com/systemd/systemd.git
synced 2024-10-28 20:25:38 +03:00
nspawn: only pass in slice setting if it is set
This commit is contained in:
parent
8201ad81a0
commit
88212f7bd1
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user