Skip to content

Commit

Permalink
change EnableTracing to TracingEnabled
Browse files Browse the repository at this point in the history
Signed-off-by: Joshua Wang <[email protected]>
  • Loading branch information
joshdabosh committed Jul 29, 2024
1 parent 5f73308 commit fa3f571
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion attestation/commandrun/commandrun.go
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ func (rc *CommandRun) RunType() attestation.RunType {
return RunType
}

func (rc *CommandRun) EnableTracing() bool {
func (rc *CommandRun) TracingEnabled() bool {
return rc.enableTracing
}

Expand Down
2 changes: 1 addition & 1 deletion attestation/product/product.go
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ func (a *Attestor) Attest(ctx *attestation.AttestationContext) error {

for _, completedAttestor := range ctx.CompletedAttestors() {
attestor := completedAttestor.Attestor
if commandRunAttestor, ok := attestor.(*commandrun.CommandRun); ok && commandRunAttestor.EnableTracing() {
if commandRunAttestor, ok := attestor.(*commandrun.CommandRun); ok && commandRunAttestor.TracingEnabled() {
processWasTraced = true

for _, process := range commandRunAttestor.Processes {
Expand Down

0 comments on commit fa3f571

Please sign in to comment.