Skip to content

Commit

Permalink
Add execution UUID to Terraform user-agent
Browse files Browse the repository at this point in the history
  • Loading branch information
christophetd committed Jun 13, 2022
1 parent e6cd79c commit 947fbb4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/stratus/runner/terraform.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package runner
import (
"context"
"errors"
"github.com/datadog/stratus-red-team/internal/providers"
"github.com/datadog/stratus-red-team/internal/utils"
"github.com/hashicorp/go-version"
"github.com/hashicorp/hc-install/product"
Expand Down Expand Up @@ -59,7 +60,7 @@ func (m *TerraformManagerImpl) TerraformInitAndApply(directory string) (map[stri
return map[string]string{}, errors.New("unable to instantiate Terraform: " + err.Error())
}

err = terraform.SetAppendUserAgent("stratus-red-team")
err = terraform.SetAppendUserAgent(providers.GetStratusUserAgent())
if err != nil {
return map[string]string{}, errors.New("unable to configure Terraform: " + err.Error())
}
Expand Down

0 comments on commit 947fbb4

Please sign in to comment.