fix slice prefix.
Faiyaz Ahmed [Mon, 7 Apr 2008 21:41:20 +0000 (21:41 +0000)]
db-config
plc_sliceinitscripts/sirius

index 64c5e24..81440d1 100755 (executable)
--- a/db-config
+++ b/db-config
@@ -537,7 +537,7 @@ def main():
             file = open(root + "/" + f, "ro")
             default_initscripts.append({"name": plc['slice_prefix'] + "_" + f,
                                         "enabled": True,
-                                        "script": file.read().replace("XXXSITEXXX", url)})
+                                        "script": file.read().replace("XXXSITEXXX", url).replace("XXXPREFIXXXX", plc['slice_prefix'])})
             file.close()
 
     # Get list of existing initscripts
index fe68581..8dd41be 100644 (file)
@@ -166,7 +166,7 @@ def updateloans():
     log('Current loans are %s' % loans)
 
     if DEBUGLEVEL < 2:
-        nodemanager.SetLoans('princeton_sirius', loans)
+        nodemanager.SetLoans('XXXPREFIXXXX_sirius', loans)
     log('Updated loans successfully')
 
     recipientcond.acquire()