diff options
author | Alex Harpin <development@landsofshadow.co.uk> | 2015-02-26 23:34:53 +0000 |
---|---|---|
committer | Alex Harpin <development@landsofshadow.co.uk> | 2015-02-26 23:34:53 +0000 |
commit | 3cb22d19f5edf6e2968c54b8fe3cfc5c13f0bf67 (patch) | |
tree | 76d22bf676d1194078d06095e841784e68803205 /scripts/system | |
parent | b9e07101d6347c0359fc68eac62e049acdfdbb78 (diff) | |
download | vyatta-cfg-system-3cb22d19f5edf6e2968c54b8fe3cfc5c13f0bf67.tar.gz vyatta-cfg-system-3cb22d19f5edf6e2968c54b8fe3cfc5c13f0bf67.zip |
vyatta-cfg-system: rename variable in ntp_format subroutine
Bug #94 http://bugzilla.vyos.net/show_bug.cgi?id=94
Diffstat (limited to 'scripts/system')
-rwxr-xr-x | scripts/system/vyatta_update_ntp.pl | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/system/vyatta_update_ntp.pl b/scripts/system/vyatta_update_ntp.pl index 118cfc18..2f9b29f1 100755 --- a/scripts/system/vyatta_update_ntp.pl +++ b/scripts/system/vyatta_update_ntp.pl @@ -26,9 +26,9 @@ use NetAddr::IP; die "$0 expects no arguments\n" if (@ARGV); sub ntp_format { - my ($cidr) = @_; - my $ip = NetAddr::IP->new($cidr); - die "$cidr: not a valid IP address" unless $ip; + my ($cidr_or_host) = @_; + my $ip = NetAddr::IP->new($cidr_or_host); + die "$cidr_or_host: not a valid IP address" unless $ip; my $address = $ip->addr(); my $mask = $ip->mask(); |