Skip to content

Commit

Permalink
Set enable regardless of previous check failed or not (#447)
Browse files Browse the repository at this point in the history
  • Loading branch information
ChaitanyaKulkarni28 authored Oct 10, 2024
1 parent e022be2 commit d1029cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion google_guest_agent/agentcrypto/mtls_mds.go
Original file line number Diff line number Diff line change
Expand Up @@ -265,9 +265,9 @@ func (j *CredsJob) shouldEnableJob(ctx context.Context, mds *metadata.Descriptor
// could be mistaken for a recurring issue, even if mTLS MDS is indeed not supported.
if !j.failedPrevious.Load() {
logger.Debugf("Skipping scheduling credential generation job, unable to reach client credentials endpoint(%s): %v\nNote that this does not impact any functionality and you might see this message if HTTPS endpoint isn't supported by the Metadata Server on your VM. Refer https://cloud.google.com/compute/docs/metadata/overview#https-mds for more details.", clientCertsKey, err)
enable = false
j.failedPrevious.Store(true)
}
enable = false
} else {
j.failedPrevious.Store(false)
}
Expand Down

0 comments on commit d1029cc

Please sign in to comment.