Skip to content

Commit a157002

Browse files
authored
Fix issue 1268 (#1269)
* Fix issue 1268 * Fix version added * Add changelog fragment * Add newline
1 parent 27df461 commit a157002

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-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+
- Add ``related_object_type`` to ``netbox_custom_filed`` (https://github.com/netbox-community/ansible_modules/issues/1268)

plugins/modules/netbox_custom_field.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,12 @@
6666
required: false
6767
type: str
6868
version_added: "3.7.0"
69+
related_object_type:
70+
description:
71+
- The object type of the custom field (if any) (NetBox 4.0+)
72+
required: false
73+
type: str
74+
version_added: "3.20.0"
6975
name:
7076
description:
7177
- Name of the custom field
@@ -255,6 +261,7 @@ def main():
255261
type="str",
256262
),
257263
object_type=dict(required=False, type="str"),
264+
related_object_type=dict(required=False, type="str"),
258265
name=dict(required=True, type="str"),
259266
label=dict(required=False, type="str"),
260267
description=dict(required=False, type="str"),

0 commit comments

Comments
 (0)