Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

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

Closed
iancrichardson wants to merge 1 commit into
lacework:mainlacework/python-sdk:mainfrom
iancrichardson:policies_fixCopy head branch name to clipboard
Closed

fix: modified create policy wrapper to use type bool instead of int for 'enabled' field#110
iancrichardson wants to merge 1 commit into
lacework:mainlacework/python-sdk:mainfrom
iancrichardson:policies_fixCopy head branch name to clipboard

Conversation

@iancrichardson
Copy link
Copy Markdown
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
Copy Markdown
Contributor

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

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

Morty Proxy This is a proxified and sanitized view of the page, visit original site.