Error when several sites with the same key are present

Bug #1878239 reported by Benjamin Allot
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Content Cache Charm
In Progress
High
Benjamin Allot

Bug Description

Due to manual edition in a huge set of sites, human error can lead to duplicate entries.

The charm should error when a site key is found several time and avoid writing the configuration and taking any action.

Related branches

Benjamin Allot (ballot)
Changed in content-cache-charm:
assignee: nobody → Benjamin Allot (ballot)
Revision history for this message
Haw Loeung (hloeung) wrote :

FWIW, the current state is that the last defined site wins because it's using yaml.safe_load(). It is a good idea to have the charm detect duplicates and alert the user, also one to extend to include checking of sites (e.g. supported options, ensure sites have at least one location etc.).

Haw Loeung (hloeung)
Changed in content-cache-charm:
status: New → In Progress
importance: Undecided → Medium
Haw Loeung (hloeung)
Changed in content-cache-charm:
importance: Medium → High
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.