mirror of
https://github.com/OpenNebula/one.git
synced 2026-12-06 07:04:45 +09:00
M #~: Add string conversion before write yaml files in fireedge (#1274)
This commit is contained in:
1 parent
b1964b86d1
commit
695946153f
1 file changed
+2
-2
@@ -17,7 +17,7 @@ const { dirname, basename } = require('path')
|
||||
// eslint-disable-next-line node/no-deprecated-api
|
||||
const { parse } = require('url')
|
||||
const events = require('events')
|
||||
const { Document, scalarOptions } = require('yaml')
|
||||
const { Document, scalarOptions, stringify } = require('yaml')
|
||||
const {
|
||||
writeFileSync,
|
||||
removeSync,
|
||||
@@ -156,7 +156,7 @@ const createYMLContent = (content = '') => {
|
||||
} else {
|
||||
doc.contents = undefined
|
||||
}
|
||||
rtn = doc
|
||||
rtn = stringify(doc.contents)
|
||||
} catch (error) {
|
||||
messageTerminal(defaultError((error && error.message) || ''))
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user