1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-01-25 06:03:36 +03:00

F #5422: replace "for of" for forEach (#1587)

This commit is contained in:
Jorge Miguel Lobo Escalona 2021-11-18 12:25:46 +01:00 committed by GitHub
parent f9a4ff0174
commit 5bdbd0795e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -204,9 +204,11 @@ const getListProviders = (res = {}, next = defaultEmptyFunction, params = {}, us
data.DOCUMENT.TEMPLATE.PROVISION_BODY.connection
) {
const encryptedData = {}
for (const key of Object.keys(data.DOCUMENT.TEMPLATE.PROVISION_BODY.connection)) {
encryptedData[key] = defaultHideCredentialReplacer
}
Object.keys(data.DOCUMENT.TEMPLATE.PROVISION_BODY.connection).forEach(
key => {
encryptedData[key] = defaultHideCredentialReplacer
}
)
data.DOCUMENT.TEMPLATE.PROVISION_BODY.connection = encryptedData
}