From d341fd5617779e553b6065e44b0eb4624680aa4f Mon Sep 17 00:00:00 2001 From: Sven Date: Wed, 3 Apr 2024 17:47:40 +0000 Subject: [PATCH] allow to set custom_fields for inventory items --- plugins/modules/inventory_item.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugins/modules/inventory_item.py b/plugins/modules/inventory_item.py index 903a1155..c8148adb 100644 --- a/plugins/modules/inventory_item.py +++ b/plugins/modules/inventory_item.py @@ -22,6 +22,7 @@ extends_documentation_fragment: - networktocode.nautobot.fragments.base - networktocode.nautobot.fragments.tags + - networktocode.nautobot.fragments.custom_fields options: device: description: @@ -145,6 +146,7 @@ def main(): asset_tag=dict(required=False, type="str"), description=dict(required=False, type="str"), discovered=dict(required=False, type="bool", default=False), + custom_fields=dict(required=False, type="dict"), tags=dict(required=False, type="list", elements="raw"), ) )