Commit 1a8a1c97 authored by Leigh B Stoller's avatar Leigh B Stoller

Change to CheckExisting prototype.

parent 7e83c8d6
#!/usr/bin/perl -w
#
# GENIPUBLIC-COPYRIGHT
# Copyright (c) 2008-2009 University of Utah and the Flux Group.
# Copyright (c) 2008-2010 University of Utah and the Flux Group.
# All rights reserved.
#
use strict;
......@@ -58,8 +58,7 @@ my $url = $certificate->URL();
if (!defined($url)) {
die("Certificate does not have a URI extension");
}
if (GeniAuthority->CheckExisting($type, $certificate->uuid(),
$certificate->hrn())) {
if (GeniAuthority->CheckExisting($certificate)) {
die("$certfile is already registered in the DB\n");
}
GeniAuthority->Create($certificate, $url, lc($type))
......
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