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