fix(xo-server/listPoolsMatchingCriteria): check{Sr,Pool}Name is not a function
Fixes xoa-support#4193
Introduced by cd8c618f0
This commit is contained in:
parent
fc73971d63
commit
de1d942b90
@ -25,6 +25,7 @@
|
|||||||
- [Snapshot] Fix "Create VM from snapshot" creating a template instead of a VM (PR [#5955](https://github.com/vatesfr/xen-orchestra/pull/5955))
|
- [Snapshot] Fix "Create VM from snapshot" creating a template instead of a VM (PR [#5955](https://github.com/vatesfr/xen-orchestra/pull/5955))
|
||||||
- [Host/Logs] Improve the display of log content (PR [#5943](https://github.com/vatesfr/xen-orchestra/pull/5943))
|
- [Host/Logs] Improve the display of log content (PR [#5943](https://github.com/vatesfr/xen-orchestra/pull/5943))
|
||||||
- [XOA licenses] Fix expiration date displaying "Invalid date" in some rare cases (PR [#5967](https://github.com/vatesfr/xen-orchestra/pull/5967))
|
- [XOA licenses] Fix expiration date displaying "Invalid date" in some rare cases (PR [#5967](https://github.com/vatesfr/xen-orchestra/pull/5967))
|
||||||
|
- [API/pool.listPoolsMatchingCriteria] Fix `checkSrName`/`checkPoolName` `is not a function` error
|
||||||
|
|
||||||
### Packages to release
|
### Packages to release
|
||||||
|
|
||||||
|
@ -115,8 +115,8 @@ export default class Pools {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const checkPoolName =
|
const checkPoolName =
|
||||||
poolNameRegExp === undefined ? stubTrue() : RegExp.prototype.test.bind(new RegExp(poolNameRegExp))
|
poolNameRegExp === undefined ? stubTrue : RegExp.prototype.test.bind(new RegExp(poolNameRegExp))
|
||||||
const checkSrName = srNameRegExp === undefined ? stubTrue() : RegExp.prototype.test.bind(new RegExp(srNameRegExp))
|
const checkSrName = srNameRegExp === undefined ? stubTrue : RegExp.prototype.test.bind(new RegExp(srNameRegExp))
|
||||||
|
|
||||||
return pools.filter(
|
return pools.filter(
|
||||||
pool =>
|
pool =>
|
||||||
|
Loading…
Reference in New Issue
Block a user