summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--server/lib/external-backends/backends/idoit-backend.js4
1 files 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': {