Commit 06d185e0 authored by Ahmad Nemati's avatar Ahmad Nemati

init

parent 2f01bb9e
......@@ -57,13 +57,13 @@ app.get('/test', (req, res) => {
async function newFloatingIpsOrder(req, res) {
let order = parseInt(req.params.num)
res.send('Floating Ips from ' + (order === 1 ? 'Nuremberg' : 'Falkenstein') + ' Requested')
res.send('Floating Ips from ' + (order === 1 ? 'Nuremberg' : order === 2 ? 'Falkenstein' : 'Helsinki') + ' Requested')
let ips = await het.getAllFloatingIps()
if (ips.length === 10)
return
let masterid = await het.getMasterServerId()
let floatNum = 10 - ips.length
let location = order === 1 ? constant.nuremberg : constant.falkenstein
let location = order === 1 ? constant.nuremberg : order === 2 ? constant.falkenstein : constant.helsinki
let newIps = []
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment