Hi Emilio,


On Mon, May 26, 2014 at 7:38 PM, Emilio Meschi <notifications@github.com>wrote:

> In python/hltdconf.py:
>
> > @@ -28,6 +28,9 @@ def __init__(self, conffile):
> >          self.delete_run_dir = bool(self.delete_run_dir=="True")
> >          self.use_elasticsearch = bool(self.use_elasticsearch=="True")
> >          self.cgi_port = int(self.cgi_port)
> > +
> > +        self.dqm_machine = bool(self.dqm_machine=="True")
>
> Shouldn't this read "False" in the default config ?
>

I had to make it in this way for "use_elasticsearch" (after a report from
Atanas, in fact).
Because ConfigParser was reading it as string, and it was evalulated to
true even if False was put - because only non empty string is False...

Same is done with dqm_machine. In hltd.conf default is False.

Srecko

>  —
> Reply to this email directly or view it on GitHub<https://github.com/cmsdaq/hltd/pull/25/files#r13053451>
> .
>