Opened 12 years ago

Closed 12 years ago

#131 closed (fixed)

typo in FOAMSliverCount() metric

Reported by: chaos@bbn.com Owned by: somebody
Priority: major Milestone: GEC15 demo
Component: Clients Version:
Keywords: v1.1.0 Cc:
Dependencies:

Description

The code:

foam_slivers_rrd = '%s/foam_slivers.rrd' % (RRD_DIR)
if os.path.isfile(foam_slivers_rrd):
  foam_state = gmoc.FOAMSliverCount()
  foam_state.loadRRD(foam_slivers_rrd, start_secs, end_secs)
  aggregate.addMeasurement(foam_state)

yields:

tau-verde,[~],19:36(148)$ sudo -u ganglia ./report_relations -d
Traceback (most recent call last):
  File "./report_relations", line 311, in <module>
    aggregate.addMeasurement(foam_state)
  File "/home/chaos/gmoc.py", line 1237, in addMeasurement
    if self.type == None or not self.type.uppercase == "FOAM":
AttributeError: 'str' object has no attribute 'uppercase'

Change History (2)

comment:1 Changed 12 years ago by chaos@bbn.com

Keywords: v1.1.0 added

You'll want upper() (different function name, and you need parentheses to actually invoke the metric) rather than uppercase.

comment:2 Changed 12 years ago by chaos@bbn.com

Resolution: fixed
Status: newclosed

This is fixed in v1.1.4.

Note: See TracTickets for help on using tickets.