Ticket #812 (closed defect: invalid)

Opened 13 years ago

Last modified 13 years ago

BoundPackage version=foo-bar instead of version=foo release=bar

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


a BoundPackage? with attributes version=foo release=bar will cause a ValueError?:

File "/usr/lib/python2.4/site-packages/Bcfg2/Client/Tools/", line 209, in VerifyPackage?

version, release = entry.get('version').split('-')

ValueError?: need more than 1 value to unpack

See attached patch

Attachments (641 bytes) - added by 13 years ago.
patch to accept version= release= and just version=

Change History

Changed 13 years ago by

patch to accept version= release= and just version=

comment:1 Changed 13 years ago by

This is not a bug.

This was an error in my config. I am using new-style Pkgmgr definitions and did not define an instance of the Package.

<BoundPackage? name="foo" version="a" release="b" type="yum" arch="x86_64">

was what I had. now I ahve

<BoundPackage? name="foo" type="yum"> <Instance ... </BoundPackage?>

Sorry for the noise

comment:2 Changed 13 years ago by solj

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

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.