remove all refrences to self, this is not a class
authorTony Mack <tmack@cs.princeton.edu>
Wed, 2 Dec 2009 00:12:20 +0000 (00:12 +0000)
committerTony Mack <tmack@cs.princeton.edu>
Wed, 2 Dec 2009 00:12:20 +0000 (00:12 +0000)
sfa/plc/peers.py

index 8a699e7..c95a61f 100644 (file)
@@ -12,7 +12,7 @@ def get_peer(api, hrn):
     # get this site's authority (sfa root authority or sub authority)
     site_authority = get_authority(slice_authority).lower()
     # check if we are already peered with this site_authority, if so
-    peers = self.api.plshell.GetPeers(self.api.plauth, {}, \
+    peers = api.plshell.GetPeers(api.plauth, {}, \
                     ['peer_id', 'peername', 'shortname', 'hrn_root'])
     for peer_record in peers:
         names = [name.lower() for name in peer_record.values() if isinstance(name, StringTypes)]