diff options
author | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2010-01-26 15:50:22 -0800 |
---|---|---|
committer | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2010-01-26 15:50:22 -0800 |
commit | c3c8076621eb0162ffa314a51c2915bc60e6b078 (patch) | |
tree | ea8c1dc61c65e96c9de58f990e8104e608044384 /lib | |
parent | 3d3e095fc9ad4ac553b7b0d37b13106aca0ace53 (diff) | |
download | vyatta-cfg-quagga-c3c8076621eb0162ffa314a51c2915bc60e6b078.tar.gz vyatta-cfg-quagga-c3c8076621eb0162ffa314a51c2915bc60e6b078.zip |
Change function names in User.pm
Perl convention of object modules is to prefix with _
Diffstat (limited to 'lib')
-rwxr-xr-x | lib/Vyatta/Login/User.pm | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/Vyatta/Login/User.pm b/lib/Vyatta/Login/User.pm index c1df6c70..1ac6bd89 100755 --- a/lib/Vyatta/Login/User.pm +++ b/lib/Vyatta/Login/User.pm @@ -55,7 +55,7 @@ sub get_groups { my $levelFile = "/opt/vyatta/etc/level"; # Convert level to additional groups -sub _level2groups { +sub _level_groups { my $level = shift; my @groups; @@ -113,7 +113,7 @@ sub _vyatta_users { return @vusers; } -sub set_authorized_keys { +sub _authorized_keys { my $user = shift; my $config = new Vyatta::Config; $config->setLevel("system login user $user authentication public-keys"); @@ -198,7 +198,7 @@ sub update { } # map level to group membership - my @new_groups = _level2groups($level); + my @new_groups = _level_groups($level); # add any additional groups from configuration push( @new_groups, $uconfig->returnValues('group') ); @@ -253,7 +253,7 @@ sub update { } } - set_authorized_keys($user); + _authorized_keys($user); } # Remove any vyatta users that do not exist in current configuration |