From c299e9a2af047fd0cfd9704f6cde636bc0715abf Mon Sep 17 00:00:00 2001 From: Jannik Schönartz Date: Thu, 17 Feb 2022 19:15:42 +0100 Subject: [server/backends/idoit] Change Blade Chassis name to match the double slot --- server/lib/external-backends/backends/idoit-backend.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/lib/external-backends/backends/idoit-backend.js b/server/lib/external-backends/backends/idoit-backend.js index 32d216d..6654dd8 100644 --- a/server/lib/external-backends/backends/idoit-backend.js +++ b/server/lib/external-backends/backends/idoit-backend.js @@ -946,7 +946,7 @@ class IdoitBackend extends ExternalBackends { for (let object of rackObjects.result) { if (object.assigned_object.type !== 'C__OBJTYPE__BLADE_CHASSIS') continue // Old segmentation was: C__OBJTYPE__RACK_SEGMENT - if (object.assigned_object.title === `${rackName} Slot ${client.location.slot}`) { + if (object.assigned_object.title === `${rackName} Slot ${client.location.slot - 1}/${client.location.slot}`) { // This is the slot where it should get added rackSegmentId = object.assigned_object.id break @@ -960,7 +960,7 @@ class IdoitBackend extends ExternalBackends { const createSegmentParamObject = { 'apikey': credentials.apikey, 'type': 74, // 92 = Rack Segment, 74 = Blade Chassis - 'title': rackName + ' Slot ' + client.location.slot, + 'title': `${rackName} Slot ${client.location.slot - 1}/${client.location.slot}`, 'categories': { 'C__CATS__CHASSIS': { 'data': { -- cgit v1.2.3-55-g7522