From: Mark Huang Date: Tue, 16 Jan 2007 17:15:11 +0000 (+0000) Subject: - fix slice name reference X-Git-Tag: pycurl-7_13_1~94 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=bc15dc8096f4465bb8c3e9da2177b010828fe5b5;p=plcapi.git - fix slice name reference --- diff --git a/PLC/Methods/SliceExtendedInfo.py b/PLC/Methods/SliceExtendedInfo.py index 25eeab6..651bd7e 100644 --- a/PLC/Methods/SliceExtendedInfo.py +++ b/PLC/Methods/SliceExtendedInfo.py @@ -23,7 +23,7 @@ class SliceExtendedInfo(Method): accepts = [ Auth(), - [Slice.fields['slice_name']], + [Slice.fields['name']], Parameter(bool, "Whether or not to return users for the slices", nullok = True), Parameter(bool, "Whether or not to return nodes for the slices", nullok = True) ] diff --git a/PLC/Methods/SliceInfo.py b/PLC/Methods/SliceInfo.py index 6551085..5be35d6 100644 --- a/PLC/Methods/SliceInfo.py +++ b/PLC/Methods/SliceInfo.py @@ -23,7 +23,7 @@ class SliceInfo(Method): accepts = [ Auth(), - [Mixed(Slice.fields['slice_name']], + [Mixed(Slice.fields['name']], Parameter(bool, "Whether or not to return users for the slices", nullok = True) Parameter(bool, "Whether or not to return nodes for the slices", nullok = True) ] diff --git a/PLC/Methods/SliceNodesList.py b/PLC/Methods/SliceNodesList.py index 556cb17..81cdff4 100644 --- a/PLC/Methods/SliceNodesList.py +++ b/PLC/Methods/SliceNodesList.py @@ -18,7 +18,7 @@ class SliceNodesList(Method): accepts = [ Auth(), - Slice.fields['slice_name'] + Slice.fields['name'] ] returns = [Node.fields['hostname']]