This commit is contained in:
Solvik Blum 2019-08-08 14:46:06 +02:00
parent 048fa22b1e
commit 9519a43277
No known key found for this signature in database
GPG key ID: CC12B3DC262B6C47
2 changed files with 4 additions and 9 deletions

View file

@ -42,10 +42,7 @@ Tested on:
### Blades
* PowerEdge M1000e
your DeviceType should have slots named `Slot 01` and so on
* PowerEdge M1000e (your `DeviceType` should have slots named `Slot 01` and so on)
* PowerEdge M640
* PowerEdge M630
* PowerEdge M620
@ -59,10 +56,7 @@ your DeviceType should have slots named `Slot 01` and so on
### Blades
* HP BladeSystem c7000 Enclosure G2 / G3
your DeviceType should have slots named `Bay 1` and so on
* HP BladeSystem c7000 Enclosure G2 / G3 (your `DeviceType` should have slots named `Bay 1` and so on)
* HP ProLiant BL460c Gen8
* HP ProLiant BL460c Gen9

View file

@ -192,7 +192,7 @@ class ServerBase():
blade = self._netbox_create_blade(chassis, datacenter)
# Set slot for blade
self._netbox_set_blade_slot(chassis, server)
self._netbox_set_blade_slot(chassis, blade)
else:
server = nb.dcim.devices.get(serial=self.get_service_tag())
if not server:
@ -207,6 +207,7 @@ class ServerBase():
server.parent_device.device_bay.id
)
netbox_chassis_serial = server.parent_device.device_bay.device.serial
move_device_bay = False
# check chassis serial with dmidecode
if netbox_chassis_serial != self.get_chassis_service_tag():