Commit 5c6326dd authored by Leigh B Stoller's avatar Leigh B Stoller

Minor fix, get rid of auditing email.

parent f33a3fff
......@@ -81,7 +81,6 @@ $| = 1;
# Now we can load the libraries after setting the proper DB.
use lib '@prefix@/lib';
use libaudit;
use emutil;
use GeniDB;
use EmulabConstants;
......@@ -140,10 +139,6 @@ if ($ARGV[0] eq "all") {
sleep(2);
}
# Record output in case of error.
LogStart(0)
if (!$debug);
# Connect to the proper DB.
DBConnect(GENICM_DBNAME());
......@@ -221,9 +216,6 @@ else {
}
}
}
# No errors at this point, nothing to report.
AuditAbort()
if (!$debug && !$errors);
exit($errors);
sub PostImageInfo($)
......@@ -306,6 +298,10 @@ sub PostImageInfo($)
$project_urn = GeniHRN::Generate($OURDOMAIN . ":" . $image->pid(),
"authority", "sa");
}
if (!defined($project_urn)) {
print STDERR "Could not form a project_urn for $image. Skipping ... \n";
return 0;
}
my $isversioned =
($WITHPROVENANCE &&
EmulabFeatures->FeatureEnabled("ImageProvenance",
......
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