Skip to content

fixing network quota resource - #1316

Merged
ozerovandrei merged 1 commit into
terraform-provider-openstack:mainfrom
n-marton:work/quota-rework
Nov 30, 2021
Merged

ozerovandrei merged 1 commit into
terraform-provider-openstack:mainfrom
n-marton:work/quota-rework

Conversation

@n-marton

Copy link
Copy Markdown
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

theopenlab-ci Bot commented Nov 18, 2021

Copy link
Copy Markdown

@nikParasyr

Copy link
Copy Markdown
Member

recheck

@theopenlab-ci

theopenlab-ci Bot commented Nov 29, 2021

Copy link
Copy Markdown

@ozerovandrei ozerovandrei left a comment

Copy link
Copy Markdown
Member

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
Copy Markdown
Contributor Author

awesome!

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.

3 participants