Ensure global-config nodes lookup cred values properly

Fixes #4396
This commit is contained in:
Nick O'Leary
2023-11-01 11:07:48 +01:00
parent ee48a2f2bf
commit 861dc0c383
2 changed files with 18 additions and 3 deletions

View File

@@ -161,7 +161,8 @@ class Flow {
for (let i = 0; i < configNodes.length; i++) {
const node = this.flow.configs[configNodes[i]]
if (node.type === 'global-config' && node.env) {
const nodeEnv = await flowUtil.evaluateEnvProperties(this, node.env, credentials.get(node.id))
const globalCreds = credentials.get(node.id)?.map || {}
const nodeEnv = await flowUtil.evaluateEnvProperties(this, node.env, globalCreds)
this._env = { ...this._env, ...nodeEnv }
}
}