git://git.onelab.eu
/
sfa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
ee6866e
)
Changing method signatures to be consistent with method behaviors. The WSDL interface...
author
Sapan Bhatia
<sapanb@cs.princeton.edu>
Sun, 5 Jul 2009 16:40:55 +0000
(16:40 +0000)
committer
Sapan Bhatia
<sapanb@cs.princeton.edu>
Sun, 5 Jul 2009 16:40:55 +0000
(16:40 +0000)
sfa/methods/create_slice.py
patch
|
blob
|
history
sfa/methods/delete_slice.py
patch
|
blob
|
history
sfa/methods/reset_slice.py
patch
|
blob
|
history
sfa/methods/stop_slice.py
patch
|
blob
|
history
diff --git
a/sfa/methods/create_slice.py
b/sfa/methods/create_slice.py
index
b052eac
..
19a6687
100644
(file)
--- a/
sfa/methods/create_slice.py
+++ b/
sfa/methods/create_slice.py
@@
-26,7
+26,7
@@
class create_slice(Method):
Parameter(str, "Resource specification"),
]
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')
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
02df39b
..
6bded1b
100644
(file)
--- 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"),
]
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):
def call(self, cred, hrn):
diff --git
a/sfa/methods/reset_slice.py
b/sfa/methods/reset_slice.py
index
e5fa112
..
540848e
100644
(file)
--- 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"),
]
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):
def call(self, cred, hrn):
diff --git
a/sfa/methods/stop_slice.py
b/sfa/methods/stop_slice.py
index
6612473
..
b58f235
100644
(file)
--- 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"),
]
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):
def call(self, cred, hrn):