mirror of
https://github.com/systemd/systemd.git
synced 2025-03-31 14:50:15 +03:00
machine: properly distuingish created and registered machines
This commit is contained in:
parent
8225488bec
commit
8d90c8a8d6
@ -223,7 +223,6 @@ static int method_create_or_register_machine(Manager *manager, sd_bus_message *m
|
||||
m->leader = leader;
|
||||
m->class = c;
|
||||
m->id = id;
|
||||
m->registered = true;
|
||||
|
||||
if (!isempty(service)) {
|
||||
m->service = strdup(service);
|
||||
@ -291,6 +290,8 @@ static int method_register_machine(sd_bus *bus, sd_bus_message *message, void *u
|
||||
goto fail;
|
||||
}
|
||||
|
||||
m->registered = true;
|
||||
|
||||
r = machine_start(m, NULL, error);
|
||||
if (r < 0)
|
||||
goto fail;
|
||||
|
Loading…
x
Reference in New Issue
Block a user