mirror of
https://github.com/systemd/systemd-stable.git
synced 2024-12-23 17:34:00 +03:00
machine: fix scope allocation
This commit is contained in:
parent
cf1265e188
commit
f526ab7ef0
@ -236,12 +236,12 @@ static int machine_start_scope(Machine *m) {
|
||||
return log_oom();
|
||||
|
||||
scope = strjoin("machine-", escaped, ".scope", NULL);
|
||||
if (scope)
|
||||
if (!scope)
|
||||
return log_oom();
|
||||
|
||||
description = strappend(m->class == MACHINE_VM ? "Virtual Machine " : "Container ", m->name);
|
||||
|
||||
r = manager_start_scope(m->manager, m->scope, m->leader, SPECIAL_MACHINE_SLICE, description, &error, &job);
|
||||
r = manager_start_scope(m->manager, scope, m->leader, SPECIAL_MACHINE_SLICE, description, &error, &job);
|
||||
if (r < 0) {
|
||||
log_error("Failed to start machine scope: %s", bus_error(&error, r));
|
||||
dbus_error_free(&error);
|
||||
|
Loading…
Reference in New Issue
Block a user