Commit 75913d5c authored by Gary Wong's avatar Gary Wong
Browse files

Maintain compatibility with pre-URN authorities.

parent a14eca79
......@@ -175,7 +175,8 @@ sub Create($$$$)
# Delete from cache, since we use replace above.
delete($authorities{$certificate->uuid()});
return GeniAuthority->Lookup($certificate->URN());
return GeniAuthority->Lookup( defined( $certificate->urn() ) ?
$certificate->urn() : $certificate->uuid() );
}
# accessors
sub field($$) { return ((! ref($_[0])) ? -1 : $_[0]->{'AUTHORITY'}->{$_[1]}); }
......
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