Skip to content

Commit ad9bdf1

Browse files
committed
change scope of fallback variables
1 parent b6b3531 commit ad9bdf1

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

packages/fx-core/src/component/configManager/lifecycle.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,11 +101,18 @@ export function resolveString(
101101
resolved.push(envVar);
102102
newVal = newVal.replace(matches[0], envVal);
103103
}
104-
} else {
104+
} else if (envVar.includes("AZURE") || envVar.includes("OPENAI")) {
105105
if (envVal) {
106106
resolved.push(envVar);
107107
newVal = newVal.replace(matches[0], envVal);
108108
}
109+
} else {
110+
if (!envVal) {
111+
unresolved.push(envVar);
112+
} else {
113+
resolved.push(envVar);
114+
newVal = newVal.replace(matches[0], envVal);
115+
}
109116
}
110117
matches = placeHolderReg.exec(val);
111118
}

0 commit comments

Comments
 (0)