Skip to content

refactor: migrate resource_github_user_ssh_key to tflog - #3601

Open
nivedmahendran wants to merge 1 commit into
integrations:mainfrom
nivedmahendran:tflog-user-ssh-key
Open

refactor: migrate resource_github_user_ssh_key to tflog#3601
nivedmahendran wants to merge 1 commit into
integrations:mainfrom
nivedmahendran:tflog-user-ssh-key

Conversation

@nivedmahendran

Copy link
Copy Markdown

Part of #3070

Migrates logging in resource_github_user_ssh_key.go from the standard log package to tflog, and migrates the CRUD functions to Context-aware variants (CreateContext/ReadContext/DeleteContext) returning diag.Diagnostics (paired with #2996).

Changes:

  • Replace log.Printf("[INFO] ...") with structured tflog.Info(ctx, ...) including the ssh_key_id field
  • error returns converted to diag.FromErr
  • Preserve ctxId/ctxEtag context values

Verified with gofmt, go build ./..., and go vet ./....

Replace the standard log package with HashiCorp's tflog, and migrate
CRUD functions to Context-aware variants returning diag.Diagnostics.

Part of integrations#3070, paired with integrations#2996.
@github-actions

Copy link
Copy Markdown

πŸ‘‹ Hi, and thank you for this contribution!

This repo is maintained by GitHub and community members on a best-effort basis. We'll get to this as soon as we can.

You can help us prioritize by joining the discussion on open issues and PRs, sharing details on the changes you need, and reviewing other contributions.


πŸ€– This is an automated message.

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.

1 participant