mirror of
git://git.proxmox.com/git/pve-ha-manager.git
synced 2025-01-07 21:18:00 +03:00
get_verbose_service_state: render removal transition as 'deleting'
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
fbda265807
commit
dcb4a2a484
@ -154,7 +154,7 @@ __PACKAGE__->register_method ({
|
||||
if ($ss) {
|
||||
$data->{node} = $ss->{node};
|
||||
$data->{crm_state} = $ss->{state};
|
||||
} else {
|
||||
} elsif ($ss) {
|
||||
$data->{node} = $sc->{node};
|
||||
}
|
||||
my $node = $data->{node} // '---'; # to be save against manual tinkering
|
||||
|
@ -130,6 +130,8 @@ sub count_fenced_services {
|
||||
sub get_verbose_service_state {
|
||||
my ($service_state, $service_conf) = @_;
|
||||
|
||||
return 'deleting' if !$service_conf;
|
||||
|
||||
my $req = $service_conf->{state} // 'ignored';
|
||||
return 'ignored' if $req eq 'ignored';
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user