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

fixing network quota resource #1316

Merged

Conversation

n-marton
Copy link
Contributor

this change is required to make networking_quota_v2 resource to work properly

this problem with the origin solution, is that it doesn't "honor" the omitempty setting of keys in the underlaying lib

.Get() defaults to 0 if there is no key, so even undefined keys were passed to openstack api with 0 value

with the .GetOk() approach it is possible to change each quota individually without affecting any other, as the underlaying lib and the api supports

@theopenlab-ci
Copy link

theopenlab-ci bot commented Nov 18, 2021

@nikParasyr
Copy link
Collaborator

recheck

@theopenlab-ci
Copy link

theopenlab-ci bot commented Nov 29, 2021

Copy link
Member

@ozerovandrei ozerovandrei left a comment

Choose a reason for hiding this comment

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

LGTM thank you @n-marton

@ozerovandrei ozerovandrei merged commit 25ed341 into terraform-provider-openstack:main Nov 30, 2021
@n-marton
Copy link
Contributor Author

awesome!

@n-marton n-marton deleted the work/quota-rework branch November 30, 2021 14:30
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.

None yet

3 participants