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:
5a9d22d
)
Updated createsliver to return the requested rspec on createsliver, as specified...
author
Josh Karlin
<jkarlin@bbn.com>
Fri, 30 Jul 2010 18:51:09 +0000
(18:51 +0000)
committer
Josh Karlin
<jkarlin@bbn.com>
Fri, 30 Jul 2010 18:51:09 +0000
(18:51 +0000)
sfa/methods/CreateSliver.py
patch
|
blob
|
history
diff --git
a/sfa/methods/CreateSliver.py
b/sfa/methods/CreateSliver.py
index
651a77d
..
4f58013
100644
(file)
--- a/
sfa/methods/CreateSliver.py
+++ b/
sfa/methods/CreateSliver.py
@@
-57,6
+57,10
@@
class CreateSliver(Method):
rspec = self.__run_sfatables(manager, SFATablesRules('INCOMING'),
hrn, origin_hrn, rspec)
- return manager.CreateSliver(self.api, slice_xrn, ValidCreds, rspec, users)
+
+ allocated = manager.CreateSliver(self.api, slice_xrn, ValidCreds, rspec, users)
+ if allocated:
+ return rspec
+
return ''