5
0
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:
Thomas Lamprecht 2019-10-05 19:11:44 +02:00
parent fbda265807
commit dcb4a2a484
2 changed files with 3 additions and 1 deletions

View File

@ -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

View File

@ -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';