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

Fix group_share_group nil pointer reference #555

Merged
merged 3 commits into from
Feb 10, 2021
Merged

Conversation

btyy77c
Copy link
Contributor

@btyy77c btyy77c commented Feb 9, 2021

Related issue: https://github.com/gitlabhq/terraform-provider-gitlab/issues/524

Updates resource gitlab_group_share_group. It only sets expires_at field when time is not nil.

Only set expires_at field when time is not nil.
Update associated tests.
@btyy77c
Copy link
Contributor Author

btyy77c commented Feb 9, 2021

@mattkasa @armsnyder

Could you review this PR?

Thanks!

gitlab/resource_gitlab_group_share_group.go Outdated Show resolved Hide resolved
Copy link
Collaborator

@mattkasa mattkasa left a comment

Choose a reason for hiding this comment

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

Just a question about the test.

Copy link
Collaborator

@armsnyder armsnyder left a comment

Choose a reason for hiding this comment

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

looks great, if you can address @mattkasa 's comment on the test. approving since I have nothing else to add. 😄

@armsnyder
Copy link
Collaborator

lgtm after the last couple commits 👍

@mattkasa mattkasa merged commit 9136561 into master Feb 10, 2021
@mattkasa mattkasa deleted the 524-share-group-fix branch February 10, 2021 01:10
@github-actions github-actions bot locked and limited conversation to collaborators Nov 10, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants