Signed-off-by: Thomas Skinner <[email protected]>
---
src/PVE/API2/HA/Status.pm | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/src/PVE/API2/HA/Status.pm b/src/PVE/API2/HA/Status.pm
index 6e13c2c..f168637 100644
--- a/src/PVE/API2/HA/Status.pm
+++ b/src/PVE/API2/HA/Status.pm
@@ -104,6 +104,11 @@ __PACKAGE__->register_method({
type => "integer",
optional => 1,
},
+ lrm_mode => {
+ description => "For type 'lrm'. Mode as reported by the
LRM.",
+ type => "string",
+ optional => 1,
+ },
crm_state => {
description => "For type 'service'. Service state as seen
by the CRM.",
type => "string",
@@ -216,6 +221,7 @@ __PACKAGE__->register_method({
type => 'lrm',
node => $node,
status => "$node (unable to read lrm status)",
+ lrm_mode => 'unknown',
};
} else {
my $status_str = &$timestamp_to_status($ctime,
$lrm_status->{timestamp});
@@ -246,6 +252,7 @@ __PACKAGE__->register_method({
node => $node,
status => $status_text,
timestamp => $lrm_status->{timestamp},
+ lrm_mode => $lrm_mode // "unknown",
};
}
}
--
2.47.3
_______________________________________________
pve-devel mailing list
[email protected]
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel