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'
Note: See
TracTickets for help on using
tickets.
You'll want
upper()
(different function name, and you need parentheses to actually invoke the metric) rather thanuppercase
.