use values defined in config for root_auth and level1_auth
authorTony Mack <tmack@cs.princeton.edu>
Wed, 11 Mar 2009 01:20:42 +0000 (01:20 +0000)
committerTony Mack <tmack@cs.princeton.edu>
Wed, 11 Mar 2009 01:20:42 +0000 (01:20 +0000)
geni/gimport.py

index d9c871b..5a138b0 100755 (executable)
@@ -38,12 +38,17 @@ else:
 ##
 # Two authorities are specified: the root authority and the level1 authority.
 
-root_auth = "plc"
-level1_auth = None
+#root_auth = "plc"
+#level1_auth = None
 
 #root_auth = "planetlab"
 #level1_auth = "planetlab.us"
 config = Config()
+
+root_auth = config.GENI_REGISTRY_ROOT_AUTH
+level1_auth = config.GENI_REGISTRY_LEVEL1_AUTH
+if not level1_auth or level1_auth in ['']:
+    level1_auth = None
 keyconvert_fn = config.GENI_BASE_DIR + os.sep + "keyconvert/keyconvert"