Skip to content

Commit b6f6ba8

Browse files
Enhancement: Added custom fields as option for netbox_virtual_machine (#173)
1 parent f44c200 commit b6f6ba8

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

plugins/modules/netbox_virtual_machine.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,10 @@
8888
tags:
8989
description:
9090
- Any tags that the virtual machine may need to be associated with
91+
custom_fields:
92+
description:
93+
- Must exist in Netbox
94+
type: dict
9195
required: true
9296
state:
9397
description:
@@ -193,10 +197,9 @@ def main():
193197
memory=dict(required=False, type="int"),
194198
disk=dict(required=False, type="int"),
195199
rack=dict(required=False, type="raw"),
196-
# Will uncomment other status dict once slugs are the only option (Netbox 2.8)
197200
status=dict(required=False, type="raw"),
198-
# status=dict(required=False, type="str", choices=["Active", "Offline", "Staged"]),
199201
tags=dict(required=False, type=list),
202+
custom_fields=dict(required=False, type=dict),
200203
),
201204
),
202205
)

0 commit comments

Comments
 (0)