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

vdk-core: adjust defined type for configuration values #684

Merged
merged 2 commits into from
Jan 28, 2022

Conversation

antoniivanov
Copy link
Collaborator

Variable can be added (has its type defined) by one plugin after its
value is set by 2nd plugin. In that cases the value would not be cast
to the correct type nor validated. This moves that casting/validation at
the point of definition (when #add is called) if value is already set
for same config key.

Testing Done: see unit tests

Signed-off-by: Antoni Ivanov aivanov@vmware.com

Variable can be added (has its type defined) by one plugin after its
value is set by 2nd plugin.   In that cases the value would not be cast
to the correct type nor validated. This moves that casting/validation at
the point of definition (when #add is called) if value is already set
for same config key.

Testing Done: see unit tests

Signed-off-by: Antoni Ivanov <aivanov@vmware.com>
@antoniivanov antoniivanov enabled auto-merge (squash) January 28, 2022 15:34
@antoniivanov antoniivanov merged commit 5361d14 into main Jan 28, 2022
@antoniivanov antoniivanov deleted the person/aivanov/vdk-core-config branch January 28, 2022 15:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants