Ticket #1115 (closed defect: fixed)

Opened 11 years ago

Last modified 11 years ago

ProbeData object doesn't behave like a str() anymore

Reported by: Owned by: desai
Priority: major Milestone: Bcfg2 1.3.0 Release
Component: bcfg2-client Version: 1.0
Keywords: Probe Cc:


In testing my migration to 1.2.x I've noticed I can no longer treat probe data as a string:


Traceback (most recent call last):

File "<console>", line 1, in <module>

TypeError?: object of type 'ProbeData?' has no len()


'104' in metadata.Probes.get('system-memory')

Traceback (most recent call last):

File "<console>", line 1, in <module>

TypeError?: argument of type 'ProbeData?' is not iterable

There is a string at .data but due to the way I test that an object is populated with .get('probe_name', 'default'), this makes it hard to get at the data.

Can the ProbeData? please inherit the properties of a str() object?


Change History

comment:1 Changed 11 years ago by solj

Moving to 1.3

comment:2 Changed 11 years ago by solj

  • Milestone changed from Bcfg2 1.2.3 Release (Bugfix) to Bcfg2 1.3.0 Release

comment:3 Changed 11 years ago by

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

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.