From 673550b7a3e39972958a45d692fa0f788a25c4c3 Mon Sep 17 00:00:00 2001 From: Sapan Bhatia Date: Sun, 5 Jul 2009 16:40:55 +0000 Subject: [PATCH] Changing method signatures to be consistent with method behaviors. The WSDL interface depends on this property. --- sfa/methods/create_slice.py | 2 +- sfa/methods/delete_slice.py | 2 +- sfa/methods/reset_slice.py | 2 +- sfa/methods/stop_slice.py | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/sfa/methods/create_slice.py b/sfa/methods/create_slice.py index b052eacc..19a6687f 100644 --- a/sfa/methods/create_slice.py +++ b/sfa/methods/create_slice.py @@ -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') diff --git a/sfa/methods/delete_slice.py b/sfa/methods/delete_slice.py index 02df39b2..6bded1b4 100644 --- a/sfa/methods/delete_slice.py +++ b/sfa/methods/delete_slice.py @@ -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): diff --git a/sfa/methods/reset_slice.py b/sfa/methods/reset_slice.py index e5fa1129..540848e3 100644 --- a/sfa/methods/reset_slice.py +++ b/sfa/methods/reset_slice.py @@ -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): diff --git a/sfa/methods/stop_slice.py b/sfa/methods/stop_slice.py index 66124738..b58f235a 100644 --- a/sfa/methods/stop_slice.py +++ b/sfa/methods/stop_slice.py @@ -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): -- 2.43.0