From 380174fc930df75ed445f959a0cfc8803fe563a9 Mon Sep 17 00:00:00 2001
From: Josh Karlin <jkarlin@bbn.com>
Date: Fri, 3 Sep 2010 20:11:08 +0000
Subject: [PATCH] small updates to generated login base and site name for geni
 users

---
 sfa/managers/aggregate_manager_pl.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/sfa/managers/aggregate_manager_pl.py b/sfa/managers/aggregate_manager_pl.py
index 41bc0571..77b44619 100644
--- a/sfa/managers/aggregate_manager_pl.py
+++ b/sfa/managers/aggregate_manager_pl.py
@@ -41,15 +41,15 @@ def __get_registry_objects(slice_xrn, creds, users):
 
         site = {}
         site['site_id'] = 0
-        site['name'] = 'geni.%s' % hrn[:20]
+        site['name'] = 'geni.%s' % hrn_auth[:20]
         site['enabled'] = True
         site['max_slices'] = 100
 
         # Note:
         # Is it okay if this login base is the same as one already at this myplc site?
         # Do we need uniqueness?  Should use hrn_auth instead of just the leaf perhaps?
-        site['login_base'] = hrn[:20]
-        site['abbreviated_name'] = hrn
+        site['login_base'] = hrn_auth[:20]
+        site['abbreviated_name'] = hrn_auth
         site['max_slivers'] = 1000
         reg_objects['site'] = site
 
-- 
2.47.0