From b10859f95db74fdec434579fd917c191aa644a42 Mon Sep 17 00:00:00 2001 From: Adriaan Renting <renting@astron.nl> Date: Mon, 30 Jan 2017 16:10:12 +0000 Subject: [PATCH] Task #10262: Small fix on Arno's code to switch the Qpid monitor from CEP2 to CEP4 --- LCS/MessageDaemons/webmonitor/QPIDWebserverJSON | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/LCS/MessageDaemons/webmonitor/QPIDWebserverJSON b/LCS/MessageDaemons/webmonitor/QPIDWebserverJSON index 9941a805959..a8f7bda6ecd 100644 --- a/LCS/MessageDaemons/webmonitor/QPIDWebserverJSON +++ b/LCS/MessageDaemons/webmonitor/QPIDWebserverJSON @@ -37,7 +37,11 @@ class perpetualTimer: brokerlist= [] -if MyHostname.lower() != 'ccu099' : +#This should be done with +#from lofar.common import isProductionEnvironment, isTestEnvironment +#But lofar.common is not installed on ccu001. + +if MyHostname.lower() == 'ccu001' : brokerlist = [ "amqp://CCU001","amqp://sas001","amqp://lcs023","amqp://cbm001","amqp://cbm002","amqp://cbm003","amqp://cbm004","amqp://cbm005","amqp://cbm006","amqp://cbm007","amqp://cbm008","amqp://mcu001"] for i in range(1,49): nodename = 'amqp://cpu%(#)02d.cep4.control.lofar' % {"#": i} -- GitLab