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:
30f1cdb
)
changed where RecordNotFound is raised in createSlice()
author
Tony Mack
<tmack@cs.princeton.edu>
Wed, 25 Mar 2009 20:38:28 +0000
(20:38 +0000)
committer
Tony Mack
<tmack@cs.princeton.edu>
Wed, 25 Mar 2009 20:38:28 +0000
(20:38 +0000)
geni/aggregate.py
patch
|
blob
|
history
diff --git
a/geni/aggregate.py
b/geni/aggregate.py
index
1db8ed1
..
162d847
100644
(file)
--- a/
geni/aggregate.py
+++ b/
geni/aggregate.py
@@
-353,13
+353,14
@@
class Aggregate(GeniServer):
# Get the slice record from geni
slice = {}
records = self.registry.resolve(self.cred, slice_hrn)
- if not records:
- raise RecordNotFound(slice_hrn)
for record in records:
if record.get_type() in ['slice']:
slice_info = record.as_dict()
slice = slice_info['pl_info']
+ if not slice:
+ raise RecordNotFound(slice_hrn)
+
# Make sure slice exists at plc, if it doesnt add it
slicename = hrn_to_pl_slicename(slice_hrn)