fix
This commit is contained in:
@@ -13,7 +13,6 @@
|
||||
- [Upgrade] Fix alert before upgrade while running backup jobs (PR [#4235](https://github.com/vatesfr/xen-orchestra/pull/4235))
|
||||
- [Import] Fix import OVA files (PR [#4232](https://github.com/vatesfr/xen-orchestra/pull/4232))
|
||||
- [VM/network] Fix duplicate IPv4 (PR [#4239](https://github.com/vatesfr/xen-orchestra/pull/4239))
|
||||
- [XO-WEB/new-vm] Fix automatic networks behaviour (PR [#4240](https://github.com/vatesfr/xen-orchestra/pull/4240))
|
||||
|
||||
### Released packages
|
||||
|
||||
|
||||
@@ -706,15 +706,16 @@ export default class NewVm extends BaseComponent {
|
||||
}
|
||||
|
||||
const automaticNetworks = this._getAutomaticNetworks()
|
||||
if (automaticNetworks.length > 0) {
|
||||
return automaticNetworks
|
||||
}
|
||||
|
||||
const network = find(this._getPoolNetworks(), network => {
|
||||
const pif = getObject(store.getState(), network.PIFs[0])
|
||||
return pif && pif.management
|
||||
})
|
||||
|
||||
return network !== undefined
|
||||
? [network.id, ...automaticNetworks]
|
||||
: [...automaticNetworks]
|
||||
return network !== undefined ? [network.id] : []
|
||||
}
|
||||
|
||||
_buildVmsNameTemplate = createSelector(
|
||||
|
||||
Reference in New Issue
Block a user