Skip to content

Commit 0471ffe

Browse files
committed
change tags elements from str to raw
1 parent 18fd9ce commit 0471ffe

30 files changed

+60
-60
lines changed

docs/getting_started/contributing/modules/new_module.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ Now we need to update the ``DOCUMENTATION`` variable to match the module we're c
150150
- Any tags that the device may need to be associated with
151151
required: false
152152
type: list
153-
elements: str
153+
elements: raw
154154
custom_fields:
155155
description:
156156
- must exist in Netbox
@@ -283,7 +283,7 @@ Let's move onto the ``main()`` function in the module and take a look at the req
283283
name=dict(required=True, type="str"),
284284
tenant=dict(required=False, type="raw"),
285285
description=dict(required=False, type="str"),
286-
tags=dict(required=False, type="list", elements="str"),
286+
tags=dict(required=False, type="list", elements="raw"),
287287
custom_fields=dict(required=False, type="dict"),
288288
),
289289
),

plugins/modules/netbox_aggregate.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@
7373
- "Any tags that the aggregate may need to be associated with"
7474
required: false
7575
type: list
76-
elements: str
76+
elements: raw
7777
custom_fields:
7878
description:
7979
- "must exist in Netbox"
@@ -176,7 +176,7 @@ def main():
176176
rir=dict(required=False, type="raw"),
177177
date_added=dict(required=False, type="str"),
178178
description=dict(required=False, type="str"),
179-
tags=dict(required=False, type="list", elements="str"),
179+
tags=dict(required=False, type="list", elements="raw"),
180180
custom_fields=dict(required=False, type="dict"),
181181
),
182182
),

plugins/modules/netbox_cable.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@
155155
- Any tags that the cable may need to be associated with
156156
required: false
157157
type: list
158-
elements: str
158+
elements: raw
159159
state:
160160
description:
161161
- Use C(present) or C(absent) for adding or removing.
@@ -340,7 +340,7 @@ def main():
340340
length_unit=dict(
341341
required=False, choices=["m", "cm", "ft", "in"], type="str"
342342
),
343-
tags=dict(required=False, type="list", elements="str"),
343+
tags=dict(required=False, type="list", elements="raw"),
344344
),
345345
),
346346
)

plugins/modules/netbox_circuit.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@
9999
- Any tags that the device may need to be associated with
100100
required: false
101101
type: list
102-
elements: str
102+
elements: raw
103103
custom_fields:
104104
description:
105105
- must exist in Netbox
@@ -210,7 +210,7 @@ def main():
210210
commit_rate=dict(required=False, type="int"),
211211
description=dict(required=False, type="str"),
212212
comments=dict(required=False, type="str"),
213-
tags=dict(required=False, type="list", elements="str"),
213+
tags=dict(required=False, type="list", elements="raw"),
214214
custom_fields=dict(required=False, type="dict"),
215215
),
216216
),

plugins/modules/netbox_cluster.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@
8484
- Any tags that the cluster may need to be associated with
8585
required: false
8686
type: list
87-
elements: str
87+
elements: raw
8888
custom_fields:
8989
description:
9090
- must exist in Netbox
@@ -197,7 +197,7 @@ def main():
197197
site=dict(required=False, type="raw"),
198198
tenant=dict(required=False, type="raw"),
199199
comments=dict(required=False, type="str"),
200-
tags=dict(required=False, type="list", elements="str"),
200+
tags=dict(required=False, type="list", elements="raw"),
201201
custom_fields=dict(required=False, type="dict"),
202202
),
203203
),

plugins/modules/netbox_console_port.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@
8989
- Any tags that the console port may need to be associated with
9090
required: false
9191
type: list
92-
elements: str
92+
elements: raw
9393
state:
9494
description:
9595
- Use C(present) or C(absent) for adding or removing.
@@ -203,7 +203,7 @@ def main():
203203
type="str",
204204
),
205205
description=dict(required=False, type="str"),
206-
tags=dict(required=False, type="list", elements="str"),
206+
tags=dict(required=False, type="list", elements="raw"),
207207
),
208208
),
209209
)

plugins/modules/netbox_console_server_port.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@
8989
- Any tags that the console server port may need to be associated with
9090
required: false
9191
type: list
92-
elements: str
92+
elements: raw
9393
state:
9494
description:
9595
- Use C(present) or C(absent) for adding or removing.
@@ -203,7 +203,7 @@ def main():
203203
type="str",
204204
),
205205
description=dict(required=False, type="str"),
206-
tags=dict(required=False, type="list", elements="str"),
206+
tags=dict(required=False, type="list", elements="raw"),
207207
),
208208
),
209209
)

plugins/modules/netbox_device.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@
154154
- Any tags that the device may need to be associated with
155155
required: false
156156
type: list
157-
elements: str
157+
elements: raw
158158
custom_fields:
159159
description:
160160
- must exist in Netbox
@@ -309,7 +309,7 @@ def main():
309309
vc_position=dict(required=False, type="int"),
310310
vc_priority=dict(required=False, type="int"),
311311
comments=dict(required=False, type="str"),
312-
tags=dict(required=False, type="list", elements="str"),
312+
tags=dict(required=False, type="list", elements="raw"),
313313
local_context_data=dict(required=False, type="dict"),
314314
custom_fields=dict(required=False, type="dict"),
315315
),

plugins/modules/netbox_device_bay.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@
7272
- Any tags that the device bay may need to be associated with
7373
required: false
7474
type: list
75-
elements: str
75+
elements: raw
7676
type: dict
7777
required: true
7878
state:
@@ -170,7 +170,7 @@ def main():
170170
name=dict(required=True, type="str"),
171171
description=dict(required=False, type="str"),
172172
installed_device=dict(required=False, type="raw"),
173-
tags=dict(required=False, type="list", elements="str"),
173+
tags=dict(required=False, type="list", elements="raw"),
174174
),
175175
),
176176
)

plugins/modules/netbox_device_interface.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@
129129
- Any tags that the interface may need to be associated with
130130
required: false
131131
type: list
132-
elements: str
132+
elements: raw
133133
mark_connected:
134134
description:
135135
- Mark an interface as connected without a cable attached (netbox >= 2.11 required)
@@ -312,7 +312,7 @@ def main():
312312
mode=dict(required=False, type="raw"),
313313
untagged_vlan=dict(required=False, type="raw"),
314314
tagged_vlans=dict(required=False, type="raw"),
315-
tags=dict(required=False, type="list", elements="str"),
315+
tags=dict(required=False, type="list", elements="raw"),
316316
mark_connected=dict(required=False, type="bool"),
317317
custom_fields=dict(required=False, type="dict"),
318318
),

0 commit comments

Comments
 (0)