Commit c09fe991 authored by Leigh B Stoller's avatar Leigh B Stoller

Add use of Feature, for testing new assign.

parent 27278d74
...@@ -99,6 +99,7 @@ use libtblog; ...@@ -99,6 +99,7 @@ use libtblog;
use libvtop; use libvtop;
use libadminctrl; use libadminctrl;
use User; use User;
use EmulabFeatures;
# Protos # Protos
sub fatal(@); sub fatal(@);
...@@ -220,6 +221,11 @@ if (!TBAdmin() && ...@@ -220,6 +221,11 @@ if (!TBAdmin() &&
# multiplex_factor default. # multiplex_factor default.
$mfactor = $experiment->multiplex_factor() $mfactor = $experiment->multiplex_factor()
if (!defined($mfactor) && defined($experiment->multiplex_factor())); if (!defined($mfactor) && defined($experiment->multiplex_factor()));
my $newassign =
EmulabFeatures->FeatureEnabled("NewAssign",
$this_user,
$experiment->GetGroup(), $experiment);
# #
# These are the flags to the vtop creation code. # These are the flags to the vtop creation code.
...@@ -557,6 +563,8 @@ sub RunAssign($$) ...@@ -557,6 +563,8 @@ sub RunAssign($$)
# Run assign # Run assign
my $cmd = "assign"; my $cmd = "assign";
$cmd .= "-new"
if ($newassign);
my $args = ""; my $args = "";
$args .= "-f rspec " $args .= "-f rspec "
if ($userspec == 1); if ($userspec == 1);
......
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