Skip to content

Commit

Permalink
Renamed variable
Browse files Browse the repository at this point in the history
  • Loading branch information
main committed Oct 6, 2024
1 parent d4f3c7b commit c4d8087
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/compose/hash.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,9 @@ func ServiceConfigsHash(project *types.Project, serviceConfig types.ServiceConfi
// ServiceSecretsHash computes the configuration hash for service secrets.
func ServiceSecretsHash(project *types.Project, serviceConfig types.ServiceConfig) (string, error) {
bytes := make([]byte, 0)
for _, config := range serviceConfig.Secrets {
file := project.Secrets[config.Source]
b, err := createTarForConfig(project, types.FileReferenceConfig(config), types.FileObjectConfig(file))
for _, secret := range serviceConfig.Secrets {
file := project.Secrets[secret.Source]
b, err := createTarForConfig(project, types.FileReferenceConfig(secret), types.FileObjectConfig(file))

if err != nil {
return "", err
Expand Down

0 comments on commit c4d8087

Please sign in to comment.