This commit is contained in:
Daniel Hougaard
2024-04-22 16:02:16 +02:00
parent 34543ef127
commit e008fb26a2
3 changed files with 2 additions and 3 deletions
+1 -1
View File
@@ -53,8 +53,8 @@ func GetBase64DecodedSymmetricEncryptionDetails(key string, cipher string, IV st
}, nil
}
// Helper function to sort the secrets by key so we can create a consistent output
func SortSecretsByKeys(secrets []models.SingleEnvironmentVariable) []models.SingleEnvironmentVariable {
// sort secrets by key
for i := 0; i < len(secrets); i++ {
for j := i + 1; j < len(secrets); j++ {
if secrets[i].Key > secrets[j].Key {