Improve error message when factory econfigure fails with a duplicated entry
Whenever two entries with the same name are present I get this error:
Key 'Gatekeeper' already exists [FAILED]
I could swear we had a better message for this case, but I haven't find the relevant code. Should I just add a new check?
#1 Updated by Marco Mascheroni about 2 months ago
I added these three lines in the reconfig_glidein main, but I'd still like to understand if something changed and an old check got broken..
seen = set() dup = [ x.getName() for x in conf.get_entries() if x.getName() in seen or seen.add(x.getName()) ] if len(dup) > 0: raise RuntimeError("Found one or more duplicated entries in the xml: %s" % ",".join(dup))