feat(xo-web): prevent XO from listing missing patches on halted XCP-ng hosts
Otherwise it triggers a lot of errors on XCP-ng
This commit is contained in:
@@ -8,6 +8,7 @@
|
||||
> Users must be able to say: “Nice enhancement, I'm eager to test it”
|
||||
|
||||
- [Backup] Better resolution of the "last run log" quick access (PR [#5141](https://github.com/vatesfr/xen-orchestra/pull/5141))
|
||||
- [Patches] Don't check patches on halted XCP-ng hosts (PR [#5140](https://github.com/vatesfr/xen-orchestra/pull/5140))
|
||||
|
||||
### Bug fixes
|
||||
|
||||
|
||||
@@ -821,6 +821,9 @@ export const getHostMissingPatches = async host => {
|
||||
? patches
|
||||
: filter(patches, { paid: false })
|
||||
}
|
||||
if (host.power_state !== 'Running') {
|
||||
return []
|
||||
}
|
||||
try {
|
||||
return await _call('pool.listMissingPatches', { host: hostId })
|
||||
} catch (_) {
|
||||
|
||||
Reference in New Issue
Block a user