mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-21 14:50:08 +03:00
B OpenNebula/one#6744: Fix host requirements expression (#3257)
Signed-off-by: Victor Hansson <vhansson@opennebula.io> (cherry picked from commit c4d727c79cd5fa753a0930a7577fb55f3e349acf)
This commit is contained in:
parent
527d1edb78
commit
f15665995d
@ -69,6 +69,9 @@ const HOST_REQ_FIELD = (isUpdate, modifiedFields, instantiate) => ({
|
||||
|
||||
watcher: (dependencies, { formContext }) => {
|
||||
const [hypervisor, clusterHostTable, clusterHostType] = dependencies
|
||||
if (!hypervisor) {
|
||||
return
|
||||
}
|
||||
const tableType = clusterHostType?.includes(T.Cluster) ? 'CLUSTER' : 'HOST'
|
||||
const regexPattern = new RegExp(`\\b${tableType}_ID\\s*=\\s*(\\d+)`)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user