You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@vcl.apache.org by ar...@apache.org on 2016/07/05 15:32:32 UTC
svn commit: r1751502 - /vcl/trunk/managementnode/lib/VCL/Module/OS/Linux.pm
Author: arkurth
Date: Tue Jul 5 15:32:32 2016
New Revision: 1751502
URL: http://svn.apache.org/viewvc?rev=1751502&view=rev
Log:
Trivial: Removed unused variables from Linux.pm::grant_access.
Modified:
vcl/trunk/managementnode/lib/VCL/Module/OS/Linux.pm
Modified: vcl/trunk/managementnode/lib/VCL/Module/OS/Linux.pm
URL: http://svn.apache.org/viewvc/vcl/trunk/managementnode/lib/VCL/Module/OS/Linux.pm?rev=1751502&r1=1751501&r2=1751502&view=diff
==============================================================================
--- vcl/trunk/managementnode/lib/VCL/Module/OS/Linux.pm (original)
+++ vcl/trunk/managementnode/lib/VCL/Module/OS/Linux.pm Tue Jul 5 15:32:32 2016
@@ -1359,8 +1359,8 @@ sub reserve {
=head2 grant_access
- Parameters : called as an object
- Returns : 1 - success , 0 - failure
+ Parameters : none
+ Returns : boolean
Description : adds username to external_sshd_config and and starts sshd with
custom config
@@ -1373,20 +1373,17 @@ sub grant_access {
return 0;
}
- my $user_login_id = $self->data->get_user_login_id();
my $computer_node_name = $self->data->get_computer_node_name();
- my $server_request_id = $self->data->get_server_request_id();
# Process the connection methods, allow firewall access from any address
if ($self->process_connect_methods("", 1)) {
- notify($ERRORS{'DEBUG'}, 0, "processed connection methods on $computer_node_name setting 0.0.0.0 for all allowed ports");
+ notify($ERRORS{'DEBUG'}, 0, "granted access to $computer_node_name by processing the connection methods");
+ return 1;
}
else {
- notify($ERRORS{'WARNING'}, 0, "failed to process connection methods on $computer_node_name setting 0.0.0.0 for all allowed ports");
+ notify($ERRORS{'WARNING'}, 0, "failed to grant access to $computer_node_name by processing the connection methods");
return;
}
-
- return 1;
} ## end sub grant_access
#/////////////////////////////////////////////////////////////////////////////