Changing method signatures to be consistent with method behaviors. The WSDL interface...
authorSapan Bhatia <sapanb@cs.princeton.edu>
Sun, 5 Jul 2009 16:40:55 +0000 (16:40 +0000)
committerSapan Bhatia <sapanb@cs.princeton.edu>
Sun, 5 Jul 2009 16:40:55 +0000 (16:40 +0000)
sfa/methods/create_slice.py
sfa/methods/delete_slice.py
sfa/methods/reset_slice.py
sfa/methods/stop_slice.py

index b052eac..19a6687 100644 (file)
@@ -26,7 +26,7 @@ class create_slice(Method):
         Parameter(str, "Resource specification"),
         ]
 
-    returns = [Parameter(int, "1 if successful")]
+    returns = Parameter(int, "1 if successful")
     
     def call(self, cred, hrn, rspec):
         self.api.auth.check(cred, 'createslice')
index 02df39b..6bded1b 100644 (file)
@@ -25,7 +25,7 @@ class delete_slice(Method):
         Parameter(str, "Human readable name of slice to delete"),
         ]
 
-    returns = [Parameter(int, "1 if successful")]
+    returns = Parameter(int, "1 if successful")
     
     def call(self, cred, hrn):
        
index e5fa112..540848e 100644 (file)
@@ -24,7 +24,7 @@ class reset_slices(Method):
         Parameter(str, "Human readable name of slice to instantiate"),
         ]
 
-    returns = [Parameter(int, "1 if successful")]
+    returns = Parameter(int, "1 if successful")
     
     def call(self, cred, hrn):
        
index 6612473..b58f235 100644 (file)
@@ -24,7 +24,7 @@ class stop_slice(Method):
         Parameter(str, "Human readable name of slice to instantiate"),
         ]
 
-    returns = [Parameter(int, "1 if successful")]
+    returns = Parameter(int, "1 if successful")
     
     def call(self, cred, hrn):