Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emulab
emulab-stable
Commits
37e92601
Commit
37e92601
authored
Mar 06, 2017
by
Leigh B Stoller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Hack for Kobus' class; set the termination date of all experiments
to May 1st.
parent
01734cc8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
apt/create_instance.in
apt/create_instance.in
+8
-0
No files found.
apt/create_instance.in
View file @
37e92601
...
...
@@ -32,6 +32,7 @@ use English;
use
Getopt::
Long
;
use
XML::
Simple
;
use
File::
Temp
qw(tempfile :mktemp tmpnam :POSIX)
;
use
Date::
Parse
;
use
Data::
Dumper
;
use
Cwd
qw(realpath)
;
...
...
@@ -637,6 +638,13 @@ if ($localuser) {
if
(
GetSiteVar
("
protogeni/use_imagetracker
")
&&
EmulabFeatures
->
FeatureEnabled
("
APT_UseImageTracker
",
$emulab_user
,
$project
));
# Hack for Kobus' class, generalize someday.
if
(
$pid
eq
"
CS4480-2017
")
{
my
$termination
=
str2time
("
2017-05-02
");
# convert to hours till then
$duration
=
int
((
$termination
-
time
())
/
3600
);
}
}
elsif
(
!
$localuser
)
{
if
(
defined
(
$sshkey
))
{
#
...
...
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