Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
emulab-devel
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
Elijah Grubb
emulab-devel
Commits
a21dbef6
Commit
a21dbef6
authored
Jun 11, 2018
by
Leigh B Stoller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Minor changes to email formatting, show dates in UTC time.
parent
67a0e58e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
1 deletion
+15
-1
utils/notify-reservations.in
utils/notify-reservations.in
+15
-1
No files found.
utils/notify-reservations.in
View file @
a21dbef6
...
...
@@ -110,7 +110,11 @@ while( my ($idx, $pid, $count, $type, $end, $email) =
"
If you do not intend to use these resources, please
\n
"
.
"
cancel this reservation as soon as possible, since
\n
"
.
"
the nodes are now unavailable to other users for
\n
"
.
"
the duration of your reservation.
\n
"
.
"
the duration of your reservation.
\n
"
.
"
\n
"
.
"
Failure to use your reservation within six hours will result
\n
"
.
"
in cancellation of the reservation so that the nodes are
\n
"
.
"
available to other users.
\n
"
.
"
\n
"
.
"
Please note that we make no guarantees about the
\n
"
.
"
availability or suitability of these nodes for your
\n
"
.
...
...
@@ -139,6 +143,9 @@ while( my ($idx, $pid, $count, $type, $start, $end, $email) =
$query_result
->
fetchrow_array
()
)
{
print
STDERR
"
Reservation
$idx
for project
$pid
,
$count
x
$type
from
"
.
"
$start
-
$end
<
$email
>
\n
"
if
(
$debug
);
$start
=
TBDateStringUTC
(
$start
);
$end
=
TBDateStringUTC
(
$end
);
next
if
(
$impotent
);
SENDMAIL
(
$email
,
"
Upcoming
$SITE
reservation
",
...
...
@@ -152,6 +159,10 @@ while( my ($idx, $pid, $count, $type, $start, $end, $email) =
"
the nodes will be unavailable to other users for
\n
"
.
"
the duration of your reservation.
\n
"
.
"
\n
"
.
"
Failure to use your reservation within six hours will result
\n
"
.
"
in cancellation of the reservation so that the nodes are
\n
"
.
"
available to other users.
\n
"
.
"
\n
"
.
"
Please note that we make no guarantees about the
\n
"
.
"
availability or suitability of these nodes for your
\n
"
.
"
experiment(s).
\n
"
.
...
...
@@ -190,6 +201,9 @@ while( my ($idx, $pid, $count, $type, $start, $end, $email, $cancel) =
$res
->
Cancel
();
$start
=
TBDateStringUTC
(
$start
);
$end
=
TBDateStringUTC
(
$end
);
SENDMAIL
(
$email
,
"
$SITE
reservation
",
"
Your reservation for
$count
$type
nodes in project
$pid
,
\n
"
.
"
starting at
$start
and ending at
$end
,
\n
"
.
...
...
Write
Preview
Markdown
is supported
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