Commit b4fbf971 authored by Leigh B. Stoller's avatar Leigh B. Stoller
Browse files

Use new LogStart() and LogEnd() calls in the libaudit libaries so we

the usual message to tblogs when a template is created.
parent 14ffc576
......@@ -97,6 +97,7 @@ use libtestbed;
use libtblog;
use libArchive;
use Template;
use libaudit;
# Be careful not to exit on transient error
$libdb::DBQUERY_MAXTRIES = 120;
......@@ -178,6 +179,9 @@ if ($modify) {
}
}
# Use the logonly option to audit so that we get a record mailed.
LogStart(0);
#
# Create a template record.
#
......@@ -303,6 +307,7 @@ fatal(-1, "Error generating template graph.")
# Web interface depends on this line. Bad; need another way to send
# back the newly generated guid/version.
LogEnd();
print "Template $guid/$vers has been created\n";
exit(0);
......
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