Compare commits

...

3 Commits

Author SHA1 Message Date
Mohamedox
cbdfccb716 fix 2019-05-27 10:00:44 +02:00
Mohamedox
d605e9740d update CHANGELOG.release 2019-05-23 15:11:08 +02:00
Mohamedox
00d2a88da3 fix(xo-web/new-vm): Automatic networks behaviour Fixes: #4081 2019-05-23 15:10:22 +02:00

View File

@@ -547,9 +547,7 @@ export default class NewVm extends BaseComponent {
const vif = getObject(storeState, vifId, resourceSet)
VIFs.push({
network:
pool || isInResourceSet(vif.$network)
? vif.$network
: defaultNetworkIds[0],
pool || isInResourceSet(vif.$network) ? vif.$network : undefined,
})
})
if (VIFs.length === 0) {
@@ -708,7 +706,7 @@ export default class NewVm extends BaseComponent {
}
const automaticNetworks = this._getAutomaticNetworks()
if (automaticNetworks.length !== 0) {
if (automaticNetworks.length > 0) {
return automaticNetworks
}