From b8594ba57403a1b48f809e9834c956893625c722 Mon Sep 17 00:00:00 2001 From: Thierry Parmentelat Date: Mon, 24 Sep 2012 11:45:52 +0200 Subject: [PATCH 1/1] fix various glitches for getting this branch to pass wsdl generation --- sfa/methods/Delete.py | 2 +- sfa/methods/Provision.py | 2 +- sfa/methods/Shutdown.py | 2 +- sfa/methods/Status.py | 4 ++-- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/sfa/methods/Delete.py b/sfa/methods/Delete.py index 9ed6e985..74ff8384 100644 --- a/sfa/methods/Delete.py +++ b/sfa/methods/Delete.py @@ -16,7 +16,7 @@ class Delete(Method): interfaces = ['aggregate', 'slicemgr', 'component'] accepts = [ - Parameter([str], "Human readable name of slice to delete (hrn or urn)"), + Parameter(type([str]), "Human readable name of slice to delete (hrn or urn)"), Parameter(dict, "Credentials"), Parameter(dict, "options"), ] diff --git a/sfa/methods/Provision.py b/sfa/methods/Provision.py index 60510932..21ab93da 100644 --- a/sfa/methods/Provision.py +++ b/sfa/methods/Provision.py @@ -22,7 +22,7 @@ class Provision(Method): """ interfaces = ['aggregate', 'slicemgr'] accepts = [ - Parameter([str], "URNs"), + Parameter(type([str]), "URNs"), Parameter(dict, "Credentials"), Parameter(dict, "options"), ] diff --git a/sfa/methods/Shutdown.py b/sfa/methods/Shutdown.py index d2880362..e532d1dc 100644 --- a/sfa/methods/Shutdown.py +++ b/sfa/methods/Shutdown.py @@ -13,7 +13,7 @@ class Shutdown(Method): interfaces = ['aggregate', 'slicemgr'] accepts = [ Parameter(str, "Slice URN"), - Parameter(type(dict), "Credentials"), + Parameter(dict, "Credentials"), ] returns = Parameter(bool, "Success or Failure") diff --git a/sfa/methods/Status.py b/sfa/methods/Status.py index 951871d0..83aa023a 100644 --- a/sfa/methods/Status.py +++ b/sfa/methods/Status.py @@ -12,8 +12,8 @@ class Status(Method): """ interfaces = ['aggregate', 'slicemgr', 'component'] accepts = [ - Parameter([str], "Slice or sliver URNs"), - Parameter(dict), "credentials")), + Parameter(type([str]), "Slice or sliver URNs"), + Parameter(dict, "credentials"), Parameter(dict, "Options") ] returns = Parameter(dict, "Status details") -- 2.43.0