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:
28ff4cd
)
merge from geni branch
author
Tony Mack
<tmack@cs.princeton.edu>
Fri, 30 Jul 2010 19:37:23 +0000
(19:37 +0000)
committer
Tony Mack
<tmack@cs.princeton.edu>
Fri, 30 Jul 2010 19:37:23 +0000
(19:37 +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 ''