summaryrefslogtreecommitdiffstats
path: root/server/lib/external-backends
diff options
context:
space:
mode:
authorJannik Schönartz2019-04-16 22:14:21 +0200
committerJannik Schönartz2019-04-16 22:14:21 +0200
commit78ac87b7a0933c28e6f6be99a98cb8fb8aef02c3 (patch)
treed6b072dd53a1a95c838f0af62607596daa8212bd /server/lib/external-backends
parent[registration] Fix dhcp mapping when adding a client & better overview ipxe menu (diff)
downloadbas-78ac87b7a0933c28e6f6be99a98cb8fb8aef02c3.tar.gz
bas-78ac87b7a0933c28e6f6be99a98cb8fb8aef02c3.tar.xz
bas-78ac87b7a0933c28e6f6be99a98cb8fb8aef02c3.zip
[server/external-backends] Fix iDoIT parent id String -> INT
Because of the rework of externalId from Integer -> String, which was needed for the Infoblox api, the idoit parents weren't set correctly
Diffstat (limited to 'server/lib/external-backends')
-rw-r--r--server/lib/external-backends/backends/idoit-backend.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/server/lib/external-backends/backends/idoit-backend.js b/server/lib/external-backends/backends/idoit-backend.js
index aab6838..7b1db4d 100644
--- a/server/lib/external-backends/backends/idoit-backend.js
+++ b/server/lib/external-backends/backends/idoit-backend.js
@@ -174,6 +174,7 @@ class IdoitBackend extends ExternalBackends {
'purpose': client.purpose === 'Pool PC' ? 7 : undefined,
'categories': {}
}
+ client.parentId = parseInt(client.parentId)
if (client.type === 'CLIENT') {
params['type'] = 10