Commit 6eb7f18e authored by Leigh B. Stoller's avatar Leigh B. Stoller

Permit Resolve() to take a urn in the uuid field.

parent c5763d0e
......@@ -121,6 +121,10 @@ sub Resolve($)
if (! defined($cred)) {
return GeniResponse->MalformedArgsResponse();
}
if (defined($uuid) && GeniHRN::IsValid($uuid)) {
$hrn = $uuid;
$uuid = undef;
}
if( defined( $hrn ) && GeniHRN::IsValid( $hrn ) ) {
my ($auth,$t,$id) = GeniHRN::Parse( $hrn );
......@@ -939,7 +943,8 @@ sub GetTicket($;$)
$rspec->{'phys_nickname'};
$rspec->{'component_uuid'} = $component_uuid;
$rspec->{'component_manager_uuid'} = $use_urns >= 0 ? $ENV{'MYURN'} : $ENV{'MYUUID'};
$rspec->{'component_manager_uuid'} =
$use_urns >= 0 ? $ENV{'MYURN'} : $ENV{'MYUUID'};
# Also update the virtexperiment table row.
$virtnode->fixed($node->node_id());
......
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