Skip to content

Commit b712398

Browse files
authored
Set type of permission constraint to raw (#1374)
* 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
1 parent fa4c44b commit b712398

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

plugins/modules/netbox_permission.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858
description:
5959
- The constraints of the permission to be created
6060
required: false
61-
type: dict
61+
type: raw
6262
required: true
6363
"""
6464

@@ -169,7 +169,7 @@ def main():
169169
enabled=dict(required=False, type="bool"),
170170
actions=dict(required=False, type="list", elements="raw"),
171171
object_types=dict(required=False, type="list", elements="raw"),
172-
constraints=dict(required=False, type="dict"),
172+
constraints=dict(required=False, type="raw"),
173173
),
174174
),
175175
)

0 commit comments

Comments
 (0)