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 (from parent 1:
7d51a04
)
fix bug
author
Tony Mack
<tmack@cs.princeton.edu>
Thu, 20 Aug 2009 17:23:16 +0000
(17:23 +0000)
committer
Tony Mack
<tmack@cs.princeton.edu>
Thu, 20 Aug 2009 17:23:16 +0000
(17:23 +0000)
sfa/plc/slices.py
patch
|
blob
|
history
diff --git
a/sfa/plc/slices.py
b/sfa/plc/slices.py
index
21cf41f
..
98a24c6
100644
(file)
--- a/
sfa/plc/slices.py
+++ b/
sfa/plc/slices.py
@@
-184,13
+184,13
@@
class Slices(SimpleStorage):
# Get the slice's site record
authority = get_authority(hrn)
# Get the slice's site record
authority = get_authority(hrn)
- site_records = registry.resolve(credential,
get_authority(hrn)
)
+ site_records = registry.resolve(credential,
authority
)
site = {}
for site_record in site_records:
if site_record.get_type() in ['authority']:
site = site_record.as_dict()
if not site:
site = {}
for site_record in site_records:
if site_record.get_type() in ['authority']:
site = site_record.as_dict()
if not site:
- raise RecordNotFound(
hrn
)
+ raise RecordNotFound(
authority
)
remote_site_id = site.pop('site_id')
# Make sure slice exists at plc, if it doesnt add it
remote_site_id = site.pop('site_id')
# Make sure slice exists at plc, if it doesnt add it