X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=sfa%2Fplc%2Fslices.py;h=98a24c6c946fe9ff88a0ea641e9cdb5a5ccb7f19;hb=98f5ae2e8b7893fabf6bc0d77938761f464e28f4;hp=21cf41fb72b92cf82605dd2e2db821831a53d4cb;hpb=7d51a04f363cc8c830d4611c2cb339a5793e58c3;p=sfa.git diff --git a/sfa/plc/slices.py b/sfa/plc/slices.py index 21cf41fb..98a24c6c 100644 --- 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) - 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: - raise RecordNotFound(hrn) + raise RecordNotFound(authority) remote_site_id = site.pop('site_id') # Make sure slice exists at plc, if it doesnt add it