Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
emulab
emulab-devel
Commits
1a8a1c97
Commit
1a8a1c97
authored
Apr 21, 2010
by
Leigh B Stoller
Browse files
Change to CheckExisting prototype.
parent
7e83c8d6
Changes
1
Hide whitespace changes
Inline
Side-by-side
protogeni/scripts/addauthority.in
View file @
1a8a1c97
#!/usr/bin/perl -w
#
# GENIPUBLIC-COPYRIGHT
# Copyright (c) 2008-200
9
University of Utah and the Flux Group.
# Copyright (c) 2008-20
1
0 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
))
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment