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:
70cdbd5
)
slice_hrn should be hrn
author
Tony Mack
<tmack@cs.princeton.edu>
Fri, 12 Jun 2009 23:34:33 +0000
(23:34 +0000)
committer
Tony Mack
<tmack@cs.princeton.edu>
Fri, 12 Jun 2009 23:34:33 +0000
(23:34 +0000)
geni/util/slices.py
patch
|
blob
|
history
diff --git
a/geni/util/slices.py
b/geni/util/slices.py
index
868331c
..
f60c23b
100644
(file)
--- a/
geni/util/slices.py
+++ b/
geni/util/slices.py
@@
-131,7
+131,7
@@
class Slices(SimpleStorage):
if record.get_type() in ['slice']:
slice = record.as_dict()
if not slice:
if record.get_type() in ['slice']:
slice = record.as_dict()
if not slice:
- raise RecordNotFound(
slice_
hrn)
+ raise RecordNotFound(hrn)
# Make sure slice exists at plc, if it doesnt add it
slicename = hrn_to_pl_slicename(hrn)
# Make sure slice exists at plc, if it doesnt add it
slicename = hrn_to_pl_slicename(hrn)
@@
-243,7
+243,6
@@
class Slices(SimpleStorage):
for aggregate in rspecs.keys():
try:
aggregates[aggregate].create_slice(credential, hrn, rspecs[aggregate])
for aggregate in rspecs.keys():
try:
aggregates[aggregate].create_slice(credential, hrn, rspecs[aggregate])
- print aggregate
except:
print >> log, "Error creating slice %(hrn)s at aggregate %(aggregate)s" % locals()
return 1
except:
print >> log, "Error creating slice %(hrn)s at aggregate %(aggregate)s" % locals()
return 1