mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-08 14:28:20 +00:00
Fix for secret-sync import secrets creating a new version for secrets that did not change
This commit is contained in:
@@ -362,7 +362,7 @@ export const secretSyncQueueFactory = ({
|
|||||||
|
|
||||||
if (Object.hasOwn(secretMap, key)) {
|
if (Object.hasOwn(secretMap, key)) {
|
||||||
// Only update secrets if the source value is not empty
|
// Only update secrets if the source value is not empty
|
||||||
if (value) {
|
if (value && value !== secretMap[key].value) {
|
||||||
secretsToUpdate.push(secret);
|
secretsToUpdate.push(secret);
|
||||||
if (importBehavior === SecretSyncImportBehavior.PrioritizeDestination) importedSecretMap[key] = secretData;
|
if (importBehavior === SecretSyncImportBehavior.PrioritizeDestination) importedSecretMap[key] = secretData;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user