Modify

Ticket #1076 (closed defect: fixed)

Opened 10 years ago

Last modified 10 years ago

bcfg2-info buildall fails when a host contains the string '-f'

Reported by: https://www.google.com/accounts/o8/id?id=AItOawkfar6gGD3PuUixQdEZQyRr2mpowLW1A70 Owned by: desai
Priority: major Milestone: Bcfg2 1.2.0 Release
Component: bcfg2-server Version: 1.0
Keywords: Cc:

Description

Produces:

Traceback (most recent call last):

File "/usr/sbin/bcfg2-info", line 468, in <module>

loop.Run(setupargs?)

File "/usr/sbin/bcfg2-info", line 437, in Run

self.onecmd(" ".join(args))

File "/usr/lib/python2.6/cmd.py", line 219, in onecmd

return func(arg)

File "/usr/sbin/bcfg2-info", line 266, in do_buildall

self.do_build("%s %s/%s.xml" % (client, args, client))

File "/usr/sbin/bcfg2-info", line 192, in do_build

alist.remove('-f')

ValueError?: list.remove(x): x not in list

This due to the search for the command line option '-f' on the string containing client host names.

Attached patch fixes.

Attachments

bcfg2-info.patch (592 bytes) - added by https://www.google.com/accounts/o8/id?id=AItOawkfar6gGD3PuUixQdEZQyRr2mpowLW1A70 10 years ago.

Change History

Changed 10 years ago by https://www.google.com/accounts/o8/id?id=AItOawkfar6gGD3PuUixQdEZQyRr2mpowLW1A70

comment:1 Changed 10 years ago by solj

  • Status changed from new to closed
  • Resolution set to fixed
  • Milestone changed from Bcfg2 1.3.0 Release to Bcfg2 1.2.0 Release

Applied in dcfc8525df6e7ffda75f55691dd67d2544c24347. Thanks again for the patch!

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.