Modify

Ticket #299 (closed enhancement: fixed)

Opened 15 years ago

Last modified 15 years ago

bcfg2 should warn in case of duplicate entries

Reported by: naapuri Owned by: desai
Priority: minor Milestone: Bcfg2 0.9.0 Release
Component: bcfg2-client Version:
Keywords: Cc:

Description

The bcfg client (or maybe server?) should give a warning if there are duplicate entries. From my experience, this happens if one creates a Bundle and then forgets to remove a ConfigFile? or Package from outside the bundle. Without a warning like this, it might be hard for the user to find the error. (The actual error seen by the user might be eg. that debsums still says "Package foo failed validation. Bad files are: ...".)

Some duplicates might be hard or even logically impossible to find due to inheritance/priorities, but any progress on this subject would be good. There are trivial cases where the bcfg2 client actually prints the entries multiple times:

In dryrun mode: suppressing entry installation for:
 ConfigFile:/etc/mysql/my.cnf           ConfigFile:/etc/mysql/my.cnf

At least these should be easy to catch.

Attachments

Change History

comment:1 Changed 15 years ago by desai

  • Milestone set to Bcfg2 0.8.8 Release

comment:2 Changed 15 years ago by desai

  • Status changed from new to closed
  • Resolution set to fixed

comment:3 Changed 15 years ago by desai

  • Milestone changed from Bcfg2 0.8.8 Release to Bcfg2 0.9.0 Release

WARNING! You need to establish a session before you can create or edit tickets. Otherwise the ticket will get treated as spam.

View

Add a comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
The resolution will be deleted. Next status will be 'reopened'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.