Modify ↓
Ticket #1076 (closed defect: fixed)
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
Change History
Changed 11 years ago by https://www.google.com/accounts/o8/id?id=AItOawkfar6gGD3PuUixQdEZQyRr2mpowLW1A70
- Attachment bcfg2-info.patch added
comment:1 Changed 11 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!
Note: See
TracTickets for help on using
tickets.