mirror of
https://github.com/OpenNebula/one.git
synced 2026-12-04 22:21:36 +09:00
F #3951: Fix provider template path
Co-authored-by: Jorge Lobo <jlobo@opennebula.systems>
This commit is contained in:
1 parent
e49cb9694a
commit
12f2c41e89
2 files changed
+2
-2
No files matched your search
@@ -108,7 +108,7 @@ const createFolderWithFiles = (path = '', files = [], filename = '') => {
|
||||
const createTemporalFile = (path = '', ext = '', content = '') => {
|
||||
let rtn
|
||||
const name = v4().replace(/-/g, '').toUpperCase()
|
||||
const file = `${path + name}.${ext}`
|
||||
const file = `${path}/${name}.${ext}`
|
||||
try {
|
||||
if (!existsSync(path)) {
|
||||
mkdirsSync(path)
|
||||
|
||||
@@ -78,7 +78,7 @@ const getProvidersTemplates = (res = {}, next = () => undefined, params = {}) =>
|
||||
}
|
||||
)
|
||||
} else {
|
||||
getFiles(`${global.CPI}/providers`, 'yaml', () => { pass = false }).map(file =>
|
||||
getFiles(path, 'yaml', () => { pass = false }).map(file =>
|
||||
existsFile(file, fillData)
|
||||
)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user