Log a message if a file on an item is ignored due to a field with the same name

This commit is contained in:
Marton Soos
2022-03-24 11:56:33 +01:00
parent a903f9b1af
commit d6f7b80c40

View File

@@ -120,6 +120,8 @@ func BuildKubernetesSecretData(fields []*onepassword.ItemField, files []*onepass
key := file.Name
if secretData[key] == nil {
secretData[key] = content
} else {
log.Info(fmt.Sprintf("File '%s' ignored because of a field with the same name", file.Name))
}
}
}