mirror of
https://github.com/node-red/node-red.git
synced 2025-03-01 10:36:34 +00:00
Add Flow.getSetting for resolving env-var properties
This lays the groundwork for subflow-specific settings
This commit is contained in:
@@ -104,7 +104,7 @@ function createNode(node,def) {
|
||||
// allow $(foo) syntax to substitute env variables for credentials also...
|
||||
for (var p in creds) {
|
||||
if (creds.hasOwnProperty(p)) {
|
||||
flowUtil.mapEnvVarProperties(creds,p);
|
||||
flowUtil.mapEnvVarProperties(creds,p,node._flow);
|
||||
}
|
||||
}
|
||||
node.credentials = creds;
|
||||
|
||||
Reference in New Issue
Block a user