Merge pull request #4526 from node-red/4508

Ensure global-config credential env vars are merged on deploy
This commit is contained in:
Nick O'Leary
2024-01-16 11:58:20 +00:00
committed by GitHub
2 changed files with 22 additions and 5 deletions

View File

@@ -71,7 +71,7 @@ RED.envVar = (function() {
};
if (item.name.trim() !== "") {
new_env.push(item);
if ((item.type === "cred") && (item.value !== "__PWRD__")) {
if (item.type === "cred") {
credentials.map[item.name] = item.value;
credentials.map["has_"+item.name] = (item.value !== "");
item.value = "__PWRD__";