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
452cff81
Commit
452cff81
authored
Aug 29, 2008
by
Leigh B. Stoller
Browse files
Minor change to allow a more custom audit message.
parent
16bccb22
Changes
1
Show whitespace changes
Inline
Side-by-side
tbsetup/libaudit.pm.in
View file @
452cff81
...
...
@@ -2,7 +2,7 @@
#
#
EMULAB
-
COPYRIGHT
#
Copyright
(
c
)
2000
-
200
4
,
2006
,
2007
University
of
Utah
and
the
Flux
Group
.
#
Copyright
(
c
)
2000
-
200
8
University
of
Utah
and
the
Flux
Group
.
#
All
rights
reserved
.
#
...
...
@@ -318,6 +318,9 @@ sub SendAuditMail($)
if
($
exitstatus
)
{
$
body
.=
"
\n
Exited with status: $exitstatus"
;
}
if
(
defined
($
AUDIT_INFO
{
'message'
}))
{
$
body
.=
"
\n
"
.
$
AUDIT_INFO
{
'message'
};
}
my
$
FROM
=
"$GCOS <${USERNAME}\@${OURDOMAIN}>"
;
if
(
! $logonly) {
...
...
@@ -454,6 +457,7 @@ my %AUDIT_METAINFO =
(
which
=>
'string'
,
#
ex
"PROJ/EXP"
success_frag
=>
'string'
,
#
ex
"T. Swapped In"
failure_frag
=>
'string'
,
#
ie
"Bla Failure"
message
=>
'string'
,
cc
=>
'list'
);
#
Cc
audit
mail
to
these
people
#
...
...
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