mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-09-22 13:39:35 +00:00
fix: orphan labels when switching from no label -> label
This commit is contained in:
@@ -141,7 +141,8 @@ export const azureAppConfigurationSecretSyncFactory = ({
|
||||
if (
|
||||
!(key in secretMap) ||
|
||||
secretMap[key] === null ||
|
||||
(azureSecret.label && azureSecret.label !== secretSync.destinationConfig.label)
|
||||
(azureSecret.label && azureSecret.label !== secretSync.destinationConfig.label) ||
|
||||
(!azureSecret.label && secretSync.destinationConfig.label)
|
||||
) {
|
||||
await $deleteAzureSecret(accessToken, secretSync.destinationConfig.configurationUrl, key, azureSecret.label);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user