Skip to content

Commit

Permalink
Remove param
Browse files Browse the repository at this point in the history
  • Loading branch information
f-blass committed Aug 14, 2024
1 parent 857928f commit b9e80d3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/supply/supply.go
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ func (s *Supplier) Run() error {
return fmt.Errorf("could not write profileD file: %w", err)
}
if cfg.ShouldUpload {
if err := s.upload(identityCreds, tlsCfg, cfg.Root, s.BuildpackVersion); err != nil {
if err := s.upload(identityCreds, tlsCfg, cfg.Root); err != nil {
return fmt.Errorf("error uploading policies: %w", err)
}
}
Expand Down Expand Up @@ -275,7 +275,7 @@ func (s *Supplier) supplyCertCopier() error {
return os.Chmod(destFile, 0755)
}

func (s *Supplier) upload(creds *services.IASCredentials, tlsCfg tlsConfig, rootDir, buildpackVersion string) error {
func (s *Supplier) upload(creds *services.IASCredentials, tlsCfg tlsConfig, rootDir string) error {
client, err := s.GetClient(tlsCfg.Cert, tlsCfg.Key)
if err != nil {
return fmt.Errorf("unable to create AMS client: %s", err)
Expand All @@ -285,7 +285,7 @@ func (s *Supplier) upload(creds *services.IASCredentials, tlsCfg tlsConfig, root
Root: path.Join(s.Stager.BuildDir(), rootDir),
Client: client,
AMSInstanceID: creds.AmsInstanceID,
UserAgent: fmt.Sprintf("cloud-authorization-buildpack/%s", buildpackVersion),
UserAgent: fmt.Sprintf("cloud-authorization-buildpack/%s", s.BuildpackVersion),
}
return u.Do(context.Background(), creds.AmsServerURL)
}

0 comments on commit b9e80d3

Please sign in to comment.