mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-09 21:28:27 +00:00
fix: skip empty values for create
This commit is contained in:
+8
-2
@@ -203,9 +203,15 @@ export const AwsSecretsManagerSyncFns = {
|
|||||||
for await (const entry of Object.entries(secretMap)) {
|
for await (const entry of Object.entries(secretMap)) {
|
||||||
const [key, { value }] = entry;
|
const [key, { value }] = entry;
|
||||||
|
|
||||||
|
// skip secrets that don't have a value set
|
||||||
|
if (!value) {
|
||||||
|
// eslint-disable-next-line no-continue
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
if (awsSecretsRecord[key]) {
|
if (awsSecretsRecord[key]) {
|
||||||
// skip secrets that haven't changed or don't have a value set
|
// skip secrets that haven't changed
|
||||||
if (!value || awsValuesRecord[key]?.SecretString === value) {
|
if (awsValuesRecord[key]?.SecretString === value) {
|
||||||
// eslint-disable-next-line no-continue
|
// eslint-disable-next-line no-continue
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user