Skip to content

Commit ffd1050

Browse files
authored
Merge pull request #1423 from yodzeb/netbox_custom_field-related_object_filter
Netbox custom field related object filter
2 parents 6e91156 + 72578a6 commit ffd1050

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
minor_changes:
2+
- Support for related_object_filter when related_object_type is "object"

plugins/modules/netbox_custom_field.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,11 @@
150150
- The name of the choice set to use (for selection fields)
151151
required: false
152152
type: str
153+
related_object_filter:
154+
description:
155+
- Filter definition for related object selection. To reset the value, set it to an empty dict (null value is ignored by the API)
156+
required: false
157+
type: dict
153158
required: true
154159
"""
155160

@@ -288,6 +293,7 @@ def main():
288293
required=False,
289294
type="str",
290295
),
296+
related_object_filter=dict(required=False, type="dict"),
291297
),
292298
)
293299
)

0 commit comments

Comments
 (0)