mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-11-03 20:23:28 +00:00
api: services: propagate "uninstalled" state for units
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
4ec19e8487
commit
ad7dd5a91f
@ -122,8 +122,13 @@ my $service_state = sub {
|
||||
} else {
|
||||
$res->{state} = $ss->{SubState} || 'unknown';
|
||||
}
|
||||
|
||||
if ($ss->{LoadState} eq 'not-found') {
|
||||
$res->{'unit-state'} = 'not-found'; # not installed
|
||||
} else {
|
||||
$res->{'unit-state'} = $ss->{UnitFileState} || 'unknown';
|
||||
}
|
||||
$res->{'active-state'} = $ss->{ActiveState} || 'unknown';
|
||||
$res->{'unit-state'} = $ss->{UnitFileState} || 'unknown';
|
||||
|
||||
return $res;
|
||||
};
|
||||
|
||||
Loading…
Reference in New Issue
Block a user