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 passing in integer for endpoint choices #48

Merged
merged 2 commits into from
Dec 11, 2019
Merged

Conversation

FragmentedPacket
Copy link
Contributor

There are certain fields for modules that are tied to static choices and are dynamically determined via the string passed in and doing a lookup within netbox_utils.

This PR fixes #47 and allows integers to be passed in and doesn't attempt to dynamically determine what that integer value should be and just passes the integer to the API. This affects all fields that are within the REQUIRED_ID_FIND within netbox_utils.

If the integer passed in is not a valid choice, the API should return an error and fail the module.

@FragmentedPacket FragmentedPacket merged commit 5d36aec into devel Dec 11, 2019
@FragmentedPacket FragmentedPacket deleted the fix-choice-int branch December 11, 2019 15:52
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.

Module failure when set status VM to offline
1 participant