Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support org admin tokens. #168

Merged
merged 1 commit into from
Sep 12, 2023
Merged

Support org admin tokens. #168

merged 1 commit into from
Sep 12, 2023

Conversation

pgavlin
Copy link
Member

@pgavlin pgavlin commented Sep 12, 2023

  • Add an admin inout property to OrgAccessToken
  • Fix existing output properties for OrgAccessToken

Comment on lines +79 to +84
changes, replaces := pulumirpc.DiffResponse_DIFF_NONE, []string(nil)
if diffs.Changed("description") {
changes = pulumirpc.DiffResponse_DIFF_SOME
changes, replaces = pulumirpc.DiffResponse_DIFF_SOME, append(replaces, "description")
}
if diffs.Changed("admin") {
changes, replaces = pulumirpc.DiffResponse_DIFF_SOME, append(replaces, "admin")
Copy link
Member

Choose a reason for hiding this comment

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

Should we update this to use NewDetailedDiffFromObjectDiff like here?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes, but I'd suggest doing that in a followup.

- Add an `admin` inout property to OrgAccessToken
- Fix existing output properties for OrgAccessToken
@pgavlin pgavlin merged commit 1cf19e3 into main Sep 12, 2023
12 checks passed
@pgavlin pgavlin deleted the pgavlin/admin-tokens branch September 12, 2023 21:50
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