1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-01-20 14:03:36 +03:00

M #~: add user and password when import marketapp (#2483)

(cherry picked from commit 2b4d472a4dae5a5c27fd5752183e550b63dae429)
This commit is contained in:
Jorge Miguel Lobo Escalona 2023-02-06 19:47:16 +01:00 committed by Tino Vázquez
parent e152160a7b
commit c10d4ea5e5
No known key found for this signature in database
GPG Key ID: 14201E424D02047E

View File

@ -83,7 +83,8 @@ const exportApp = (
let rtn = httpBadRequest
const { id, name, datastore, file, associated, tag, template, vmname } =
params
if (id && name && datastore) {
const { user, password} = userData
if (id && name && datastore && user, password) {
let message = ''
const paramsCommand = [
'export',
@ -98,6 +99,8 @@ const exportApp = (
tag && paramsCommand.push('--tag', tag)
template && paramsCommand.push('--template', template)
vmname && paramsCommand.push('--vmname', vmname)
user && paramsCommand.push('--user', user)
password && paramsCommand.push('--password', password)
const executedCommand = executeCommand(
defaultCommandMarketApp,