Skip to content

Commit 6560f05

Browse files
authored
Change u_height type to float (#1200)
1 parent 38c8399 commit 6560f05

File tree

6 files changed

+9
-9
lines changed

6 files changed

+9
-9
lines changed

docs/plugins/netbox_device_type_module.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -1087,7 +1087,7 @@ Examples
10871087
model: ws-test-3750
10881088
manufacturer: Test Manufacturer
10891089
part_number: ws-3750g-v2
1090-
u_height: 1
1090+
u_height: 1.5
10911091
is_full_depth: False
10921092
subdevice_role: parent
10931093
state: present

plugins/modules/netbox_device_type.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
description:
5555
- The height of the device type in rack units
5656
required: false
57-
type: int
57+
type: float
5858
weight:
5959
description:
6060
- The weight of the device type
@@ -159,7 +159,7 @@
159159
model: ws-test-3750
160160
manufacturer: Test Manufacturer
161161
part_number: ws-3750g-v2
162-
u_height: 1
162+
u_height: 1.5
163163
is_full_depth: False
164164
subdevice_role: parent
165165
state: present
@@ -210,7 +210,7 @@ def main():
210210
model=dict(required=True, type="raw"),
211211
slug=dict(required=False, type="str"),
212212
part_number=dict(required=False, type="str"),
213-
u_height=dict(required=False, type="int"),
213+
u_height=dict(required=False, type="float"),
214214
weight=dict(required=False, type="float"),
215215
weight_unit=dict(
216216
required=False,

plugins/modules/netbox_rack.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@
106106
description:
107107
- The height of the rack in rack units
108108
required: false
109-
type: int
109+
type: float
110110
desc_units:
111111
description:
112112
- Rack units will be numbered top-to-bottom
@@ -298,7 +298,7 @@ def main():
298298
23,
299299
],
300300
),
301-
u_height=dict(required=False, type="int"),
301+
u_height=dict(required=False, type="float"),
302302
desc_units=dict(required=False, type="bool"),
303303
outer_width=dict(required=False, type="int"),
304304
outer_depth=dict(required=False, type="int"),

tests/integration/targets/v3.5/tasks/netbox_device_type.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
model: ws-test-3750
5656
manufacturer: Test Manufacturer
5757
part_number: ws-3750g-v2
58-
u_height: 1
58+
u_height: 1.5
5959
is_full_depth: false
6060
subdevice_role: parent
6161
state: present

tests/integration/targets/v3.6/tasks/netbox_device_type.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
model: ws-test-3750
5656
manufacturer: Test Manufacturer
5757
part_number: ws-3750g-v2
58-
u_height: 1
58+
u_height: 1.5
5959
is_full_depth: false
6060
subdevice_role: parent
6161
state: present

tests/integration/targets/v3.7/tasks/netbox_device_type.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
model: ws-test-3750
5656
manufacturer: Test Manufacturer
5757
part_number: ws-3750g-v2
58-
u_height: 1
58+
u_height: 1.5
5959
is_full_depth: false
6060
subdevice_role: parent
6161
state: present

0 commit comments

Comments
 (0)