Opened 12 years ago
Closed 12 years ago
#44 closed (fixed)
typoes in POP.resources() getter
Reported by: | chaos@bbn.com | Owned by: | somebody |
---|---|---|---|
Priority: | major | Milestone: | 2012-09-04 client release |
Component: | Clients | Version: | |
Keywords: | v0.2.1 | Cc: | |
Dependencies: |
Description
The code:
pop = gmoc.POP( config['POPNAME'], location = location, operator = organization, ) print pop.resources
yields:
Traceback (most recent call last): File "./report_foam_relations", line 209, in <module> print pop.resources File "/home/chaos/gmoc.py", line 442, in resources for agg in self.__aggregates: AttributeError: 'POP' object has no attribute '_POP__aggregates'
This is because the resources getter function iterates over:
self.__aggregates
(should be_aggregates
)self.__sas
(should be_authorities
)
Change History (2)
comment:1 Changed 12 years ago by
comment:2 Changed 12 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |
Fixed. The code:
pop = gmoc.POP( config['POPNAME'], location = location, operator = organization, ) print pop.resources print pop.sliceAuthorities
now yields:
[] []
Note: See
TracTickets for help on using
tickets.
The same typo exists in the
POP.sliceAuthorities()
getter as well (self.__sas
instead ofself._authorities
).