1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-22 18:50:08 +03:00

F #5704: Fix API zendesk(update), vcenter, marketapp (#1746)

(cherry picked from commit d8ef36dfbd76f0b36ce84837f5b0f2e0939abf71)
This commit is contained in:
Jorge Miguel Lobo Escalona 2022-02-02 17:43:12 +01:00 committed by Tino Vazquez
parent ad03f736af
commit b0afcf4844
3 changed files with 8 additions and 8 deletions

View File

@ -35,14 +35,14 @@ module.exports = [
},
{
...Commands[MARKETAPP_VMIMPORT],
actions: importMarket,
action: importMarket,
},
{
...Commands[MARKETAPP_TEMPLATEIMPORT],
actions: importMarket,
action: importMarket,
},
{
...Commands[MARKETAPP_DOCKERTAGS],
actions: getDockerTags,
action: getDockerTags,
},
]

View File

@ -42,14 +42,14 @@ module.exports = [
},
{
...Commands[VCENTER_IMPORT],
actions: importVcenter,
action: importVcenter,
},
{
...Commands[VCENTER_LISTALL],
actions: listAll,
action: listAll,
},
{
...Commands[VCENTER_LIST],
actions: list,
action: list,
},
]

View File

@ -20,7 +20,7 @@ const {
} = require('server/utils/constants/defaults')
const ZENDESK = require('server/routes/api/zendesk/basepath')
const { POST, GET, UPDATE } = httpMethod
const { POST, GET, PUT } = httpMethod
const basepath = `/${ZENDESK}`
const { resource, postBody } = fromData
@ -75,7 +75,7 @@ module.exports = {
},
[ZENDESK_UPDATE]: {
path: `${basepath}/:id`,
httpMethod: UPDATE,
httpMethod: PUT,
auth: true,
params: {
id: {