Skip to content

Commit

Permalink
Set type of permission constraint to raw (#1374)
Browse files Browse the repository at this point in the history
* Set type of permission constraint to raw

According to https://netboxlabs.com/docs/netbox/en/stable/administration/permissions/,
constraints can be either a dictionary or a list of dictionaries. The
only way to represent this in Ansible is with the `raw` type.

* Update doc block
  • Loading branch information
dchiquito authored Jan 26, 2025
1 parent fa4c44b commit b712398
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugins/modules/netbox_permission.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
description:
- The constraints of the permission to be created
required: false
type: dict
type: raw
required: true
"""

Expand Down Expand Up @@ -169,7 +169,7 @@ def main():
enabled=dict(required=False, type="bool"),
actions=dict(required=False, type="list", elements="raw"),
object_types=dict(required=False, type="list", elements="raw"),
constraints=dict(required=False, type="dict"),
constraints=dict(required=False, type="raw"),
),
),
)
Expand Down

0 comments on commit b712398

Please sign in to comment.