Modify

Ticket #594 (closed defect: fixed)

Opened 14 years ago

Last modified 14 years ago

Subclassed Metadata plugins: broken probes

Reported by: John Morris <[email protected]…> Owned by: desai
Priority: minor Milestone: Bcfg2 0.9.6 Release
Component: bcfg2-client Version: 0.9.x
Keywords: Cc:

Description

In Metadata.ProbeSet?.get_probe_data, the probe 'source' is hardcoded to 'Metadata'. This causes problems when a subclassed Metadata package, with a different name and thus a different directory in /var/lib/bcfg2, runs.

The attached patch fixes this by passing the Metadata class's name to get_probe_data as an argument.

Attachments

metadata.fixprobes.patch (1.1 KB) - added by John Morris <[email protected]…> 14 years ago.
Patch to fix subclassed Metadata probes
metadata.fixprobes.2.patch (1.1 KB) - added by John Morris <[email protected]…> 14 years ago.

Change History

Changed 14 years ago by John Morris <[email protected]…>

Patch to fix subclassed Metadata probes

Changed 14 years ago by John Morris <[email protected]…>

comment:1 Changed 14 years ago by John Morris <[email protected]…>

Oops, first attached patch didn't work out, see the second.

comment:2 Changed 14 years ago by desai

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

Fixed in [e522198525002564cc78f8b22e198c7458a81819] (SVN r4879) with a slightly different 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.