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:
parent
e152160a7b
commit
c10d4ea5e5
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user