mirror of
https://github.com/clearlinux/systemd-stable.git
synced 2026-10-04 07:48:36 +00:00
nspawn: only pass in slice setting if it is set
This commit is contained in:
+1
-1
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user