Commit d5545977 authored by Leigh B Stoller's avatar Leigh B Stoller

Use slice->urn() to get the URN instead of constructing a new one

from slicename(), which breaks on names with a dash in them.
parent 5dd95a91
......@@ -248,8 +248,7 @@ sub Resolve($)
}
my @slices = GeniSlice->LookupByCreator( $geniuser );
my @sliceURNs = map( GeniHRN::Generate( $OURDOMAIN, "slice",
$_->slicename() ), @slices );
my @sliceURNs = map( $_->urn(), @slices );
# Return a blob.
my $blob = { "uid" => $geniuser->uid(),
......@@ -285,9 +284,7 @@ sub Resolve($)
"creator_uuid" => $slice->creator_uuid(),
"creator_urn" => $slice->creator_urn(),
"gid" => $slice->cert(),
"urn" => GeniHRN::Generate($OURDOMAIN,
"slice",
$slice->slicename()),
"urn" => $slice->urn(),
"component_managers" => \@managers
};
$slice->UnLock();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment