From 5f583fe81fc8be7f9e516044b43f3f28037242c8 Mon Sep 17 00:00:00 2001 From: Stephen Hemminger Date: Tue, 21 Feb 2012 13:19:31 -0800 Subject: Fix server property option Bug 7623 Patch provided by Stig. --- scripts/system/vyatta_update_ntp.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripts') diff --git a/scripts/system/vyatta_update_ntp.pl b/scripts/system/vyatta_update_ntp.pl index 4619b3bc..a162f858 100755 --- a/scripts/system/vyatta_update_ntp.pl +++ b/scripts/system/vyatta_update_ntp.pl @@ -33,7 +33,7 @@ $cfg->setLevel("system ntp"); foreach my $server ($cfg->listNodes("server")) { print "server $server iburst"; for my $property (qw(dynamic noselect preempt prefer)) { - print " $property" if ($cfg->exists("$server $property")); + print " $property" if ($cfg->exists("server $server $property")); } print "\n"; } -- cgit v1.2.3