RSpecVersion.todict() needs to turn values() into a list()
[sfa.git] / sfa / federica / fddriver.py
index 368c3dc..cec702d 100644 (file)
@@ -23,8 +23,9 @@ federica_version_string="RSpecV2"
 
 class FdDriver (PlDriver):
 
-    def __init__ (self,config): 
-        PlDriver.__init__ (self, config)
+    def __init__ (self,api): 
+        PlDriver.__init__ (self, api)
+        config = api.config
         self.shell=FdShell(config)
 
     # the agreement with the federica driver is for them to expose results in a way
@@ -56,7 +57,7 @@ class FdDriver (PlDriver):
     def list_slices (self, creds, options):
         # the issue is that federica returns the list of slice's urn in a string format
         # this is why this dirty hack is needed until federica fixes it. 
-        slices_str = self.shell.listSlices()['value'][1:-2]
+        slices_str = self.shell.listSlices()['value'][1:-1]
         slices_list = slices_str.split(", ")
         return slices_list