Ticket #1052 (closed defect: fixed)

Opened 12 years ago

Last modified 11 years ago

`bcfg -ven` vs. `bcfg -I` yield different output

Reported by: Owned by:
Priority: minor Milestone: Bcfg2 1.2.1 Release (Bugfix)
Component: bcfg2-client Version: 1.0
Keywords: Cc: [email protected]


When using the bcfg2-accounts plugin (,\

and adding a new user to Properties/accounts.xml.

bcfg2 -n : gives no indication that an action is necessary.

bcfg2 -I : works as expected. Expected meaning you are prompted to modify the \ user.

An example can be found here: You may ignore the\

question about why usermod is being called at all.


Change History

comment:1 Changed 12 years ago by

Just to clarify: this issue is unrelated to the bcfg2-accounts stuff. It can easily be reproduced using the following entry as a test case:

<Action name='test' timing='pre' when='always' status='check' command='/bin/true'/>

This <Action> won't be mentioned by bcfg2 -vn, and it won't be added to the list of Bad Entries. If the timing attribute is set to post, the entry will be handled as expected.

comment:2 Changed 12 years ago by solj

  • Milestone changed from Bcfg2 1.3.0 Release to Bcfg2 1.2.1 Release (Bugfix)

comment:3 Changed 12 years ago by

comment:4 Changed 11 years ago by

  • Owner changed from desai to
  • Status changed from new to accepted

comment:5 Changed 11 years ago by

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

comment:6 Changed 11 years ago by

  • Status changed from closed to reopened
  • Resolution fixed deleted

I can reproduce the problem with Bcfg2 1.2.3.

comment:7 Changed 11 years ago by

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

Sorry, I misunderstood the issue here; pre and both actions were not reliably showing up in -I, either, and that's what I fixed.

I've now fixed the issue with -n output as well:

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


Add a comment

Modify Ticket

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

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

Note: See TracTickets for help on using tickets.