Skip to content

fix: modified create policy wrapper to use type bool instead of int for 'enabled' field#110

Closed
iancrichardson wants to merge 1 commit intolacework:mainfrom
iancrichardson:policies_fix
Closed

fix: modified create policy wrapper to use type bool instead of int for 'enabled' field#110
iancrichardson wants to merge 1 commit intolacework:mainfrom
iancrichardson:policies_fix

Conversation

@iancrichardson
Copy link
Contributor

Removed the int and bool type casts from the enabled field when creating a new policy in the policies.py wrapper.

In response to error when passing type int when creating a new policy:
laceworksdk.exceptions.ApiError: [400] Bad Request - Problem parsing JSON, the value for key enabled is of the wrong type

@alannix-lw
Copy link
Contributor

This appears to also be resolved in #111 - can you confirm/close @iancrichardson?

@iancrichardson
Copy link
Contributor Author

Yes, confirmed. Sorry about that!

@iancrichardson iancrichardson deleted the policies_fix branch February 24, 2023 03:07
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.

2 participants

Comments