File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -1465,7 +1465,7 @@ export default {
14651465
14661466 let networkIds = []
14671467
1468- const deployVmData = {}
1468+ let deployVmData = {}
14691469 // step 1 : select zone
14701470 deployVmData .zoneid = values .zoneid
14711471 deployVmData .podid = values .podid
@@ -1615,7 +1615,10 @@ export default {
16151615 const description = values .name || ' '
16161616 const password = this .$t (' label.password' )
16171617
1618- api (' deployVirtualMachine' , deployVmData).then (response => {
1618+ deployVmData = Object .fromEntries (
1619+ Object .entries (deployVmData).filter (([key , value ]) => value !== undefined ))
1620+
1621+ api (' deployVirtualMachine' , {}, ' POST' , deployVmData).then (response => {
16191622 const jobId = response .deployvirtualmachineresponse .jobid
16201623 if (jobId) {
16211624 this .$pollJob ({
You can’t perform that action at this time.
0 commit comments