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 chaos@bbn.com

The same typo exists in the POP.sliceAuthorities() getter as well (self.__sas instead of self._authorities).

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

Resolution: fixed
Status: newclosed

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.