From 2bc74d4d36f5320bb535db972a43fd46cd45a93b Mon Sep 17 00:00:00 2001 From: Jannik Schönartz Date: Thu, 7 May 2020 22:03:26 +0000 Subject: [webapp/external-backends] Remove step 3 from stepper & eslint fixes --- server/api/registration.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'server/api') diff --git a/server/api/registration.js b/server/api/registration.js index 3a88bee..86bf185 100644 --- a/server/api/registration.js +++ b/server/api/registration.js @@ -510,7 +510,7 @@ function buildIpxeMenu (id, name, groups, parents) { // Add client menu script += 'item select Add client to ' + toAscii(name) + '\r\n' menuscript += `:select\r\necho Enter client name\r\nread clientname\r\nparams\r\n` - menuscript += `param client { "name": "\${clientname}", "type": "CLIENT", "uuid": "\${uuid}", "purpose": "Pool PC", "parents": [` + parents[parents.length -1].id + `], "networks": [{ "ip": "\${net0/ip}", "mac": "\${net0/mac}" }] }\r\n` + menuscript += `param client { "name": "\${clientname}", "type": "CLIENT", "uuid": "\${uuid}", "purpose": "Pool PC", "parents": [` + parents[parents.length - 1].id + `], "networks": [{ "ip": "\${net0/ip}", "mac": "\${net0/mac}" }] }\r\n` menuscript += 'param ipxe true\r\n' menuscript += 'chain --replace ' + basUrl + '/api/registration/clients##params\r\n\r\n' -- cgit v1.2.3-55-g7522