fix: changed logic to use power status from underlying inventory (#707)

Signed-off-by: Gaurav Mehta <gaurav.mehta@suse.com>
This commit is contained in:
Gaurav Mehta
2026-02-23 20:08:54 +11:00
committed by GitHub
parent 93f027a57c
commit c2df13ad73
+2 -4
View File
@@ -536,8 +536,7 @@ export default class HciNode extends HarvesterResource {
get isStopped() {
const inventory = this.inventory || {};
return inventory.spec?.powerActionRequested === 'shutdown' &&
inventory.status?.powerAction?.actionStatus === 'complete';
return inventory.status?.machinePowerState === 'off';
}
get isStopping() {
@@ -553,8 +552,7 @@ export default class HciNode extends HarvesterResource {
get isStarted() {
const inventory = this.inventory || {};
return inventory.spec?.powerActionRequested === 'poweron' &&
inventory.status?.powerAction?.actionStatus === 'complete';
return inventory.status?.machinePowerState === 'on';
}
get isStarting() {