Ticket #511 (closed defect: fixed)

Opened 23 months ago

Last modified 23 months ago

SYSV client tool unnecessarily requires url attribute for package verification

Reported by: adeason2@… Owned by: desai
Priority: minor Milestone: Bcfg2 0.9.5 Release
Component: bcfg2-client Version: 0.9.x
Keywords: Cc:

Description

[3425] introduced the addition of 'url' to __req__['Package'] for SYSV.py. While the url attribute is required for installing a SYSV package, it is certainly not necessary for verifying or removing one. Some (most?) SYSV packages have no meaningful URL, e.g. the ones that come on the Solaris install DVD. And the Blast client tool does not ever use the 'url' attribute, but it inherits the requirement since it is a subclass of SYSV.

From what I can tell from reading the source, the __req__ structure defines required attributes for all operations on an object (a package in this specific case), and __ireq__ is for attributes that are required for installing an object. So, SYSV should have __ireq__ defined with the 'url' attribute, and __req__ should have 'url' left out.

I'll attach a patch, which is hopefully clearer than my incoherent rambling. This isn't all too important, since it's easy enough to add a dummy url attribute to the package definitions, but it's just silly.

Attachments

Change History

Changed 23 months ago by desai

  • status changed from new to closed
  • resolution set to fixed
  • milestone set to Bcfg2 0.9.5 Release

Committed in [4155]. Thanks for the patch.

Add/Change #511 (SYSV client tool unnecessarily requires url attribute for package verification)

Author



Change Properties
<Author field>
Action
as closed
Next status will be 'reopened'
 
Note: See TracTickets for help on using tickets.