Skip to content

Cleanup: config.go#661

Merged
inteon merged 1 commit intomasterfrom
cleanup_part1
Jun 10, 2025
Merged

Cleanup: config.go#661
inteon merged 1 commit intomasterfrom
cleanup_part1

Conversation

@inteon
Copy link
Contributor

@inteon inteon commented Jun 10, 2025

  • simplified control flow
  • deduplicated code
  • removed createCredentialClient

Signed-off-by: Tim Ramlot <42113979+inteon@users.noreply.github.com>
@inteon inteon requested review from SgtCoDFish, maelvls and wallrj and removed request for maelvls June 10, 2025 12:38
Copy link
Member

@maelvls maelvls left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems like innocuous cosmetic changes. Not sure why this is being refactored, but OK with that.

Just one nit about one log line, the rest is fine.


// We don't do this for the VenafiCloudVenafiConnection mode because
// the upload_path field is ignored in that mode.
log.Info("Loading upload_path from \"venafi-cloud\" configuration.")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is this unconditionally logged? It used to be only logged in "key pair" mode.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@inteon inteon merged commit df72cd9 into master Jun 10, 2025
2 checks passed
@wallrj wallrj deleted the cleanup_part1 branch June 18, 2025 16:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants