mirror of
https://git.proxmox.com/git/pve-ha-manager
synced 2025-04-28 13:55:09 +00:00
api: status: code style clean-up
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
f80628066d
commit
77cfe89238
@ -195,8 +195,12 @@ __PACKAGE__->register_method ({
|
||||
my $lrm_status = PVE::HA::Config::read_lrm_status($node);
|
||||
my $id = "lrm:$node";
|
||||
if (!$lrm_status->{timestamp}) {
|
||||
push @$res, { id => $id, type => 'lrm', node => $node,
|
||||
status => "$node (unable to read lrm status)"};
|
||||
push @$res, {
|
||||
id => $id,
|
||||
type => 'lrm',
|
||||
node => $node,
|
||||
status => "$node (unable to read lrm status)",
|
||||
};
|
||||
} else {
|
||||
my $status_str = &$timestamp_to_status($ctime, $lrm_status->{timestamp});
|
||||
my $lrm_mode = $lrm_status->{mode};
|
||||
|
Loading…
Reference in New Issue
Block a user