F #3951: Fix provider template path

Co-authored-by: Jorge Lobo <jlobo@opennebula.systems>
This commit is contained in:
Jorge Miguel Lobo EscalonaandJorge Lobo authored and GitHub committed 2020-11-17 16:46:26 +01:00
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)
)
}