From 6356721e764b32b55295d19b8c23d98870a84315 Mon Sep 17 00:00:00 2001 From: Jonathon Duerig <duerig@flux.utah.edu> Date: Mon, 3 Oct 2011 16:29:06 -0600 Subject: [PATCH] Bugfix: Check for feature existence using FeatureEnabled rather than Lookup --- utils/newnode.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/utils/newnode.in b/utils/newnode.in index dd7a2c9ef9..ca5fce66f9 100644 --- a/utils/newnode.in +++ b/utils/newnode.in @@ -41,8 +41,8 @@ my $exports_setup = "$TB/sbin/exports_setup"; my $dhcpd_rc = "/usr/local/etc/rc.d/2.dhcpd.sh"; -my $feature = EmulabFeatures->Lookup("ScriptNewNodes"); -my $useScriptFeature = defined($feature) && $feature->enabled(); +my $useScriptFeature = EmulabFeatures->FeatureEnabled("ScriptNewNodes", undef, + undef, undef); # # MFS to boot the nodes into initially -- GitLab