r1.11 replace first line bonfire.py usr/bin/env python
[sfa.git] / sfa / managers / v2_to_v3_adapter.py
index 287144d..15a8cd8 100644 (file)
@@ -14,10 +14,7 @@ class V2ToV3Adapter:
     def __init__ (self, config):
         flavour = config.SFA_GENERIC_FLAVOUR
         # to be cleaned
-        if flavour == "pl":
-            from sfa.planetlab.pldriver import PlDriver
-            self.driver = PlDriver(config)
-        elif flavour == "nitos":
+        if flavour == "nitos":
             from sfa.nitos.nitosdriver import NitosDriver
             self.driver = NitosDriver(config)
         elif flavour == "fd":
@@ -91,7 +88,7 @@ class V2ToV3Adapter:
                 (slice_urn, rspec_string, expiration, options) = args
                 slice_hrn, type = urn_to_hrn(slice_urn)
                 creds = []
-                users = options.get('geni_users', [])
+                users = options.get('sfa_users', [])
                 manifest_string = getattr(self.driver, "create_sliver")(slice_urn, slice_hrn, creds, rspec_string, users, options)
                 
                 # slivers allocation
@@ -190,7 +187,7 @@ class V2ToV3Adapter:
 
 
             else: 
-                # same as v2 (list_resources and registry methods) 
+                # same as v2 ( registry methods) 
                 result=getattr(self.driver, name)(*args, **kwds)
             return result
         return func