mirror of
https://github.com/1Password/onepassword-operator.git
synced 2025-10-23 16:00:46 +00:00
Fix logging the error so it doesn't panic
This commit is contained in:
@@ -120,7 +120,7 @@ func BuildKubernetesSecretData(fields []model.ItemField, files []model.File) map
|
|||||||
for _, file := range files {
|
for _, file := range files {
|
||||||
content, err := file.Content()
|
content, err := file.Content()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Error(err, "Could not load contents of file %s", file.Name)
|
log.Error(err, fmt.Sprintf("Could not load contents of file %s", file.Name))
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
if content != nil {
|
if content != nil {
|
||||||
|
Reference in New Issue
Block a user