in get_peer(), convert values to lowercase before trying to find a match
authorTony Mack <tmack@cs.princeton.edu>
Thu, 6 Aug 2009 17:10:57 +0000 (17:10 +0000)
committerTony Mack <tmack@cs.princeton.edu>
Thu, 6 Aug 2009 17:10:57 +0000 (17:10 +0000)
sfa/plc/slices.py

index f97cc78..003cd1f 100644 (file)
@@ -42,7 +42,7 @@ class Slices(SimpleStorage):
         slice_authority = get_authority(hrn)
 
         # get this site's authority (sfa root authority or sub authority)
-        site_authority = get_authority(slice_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, {}, ['peer_id', 'peername', 'shortname', 'hrn_root'])