vcl-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From arku...@apache.org
Subject svn commit: r1646501 - /vcl/trunk/managementnode/lib/VCL/Module/OS.pm
Date Thu, 18 Dec 2014 18:02:31 GMT
Author: arkurth
Date: Thu Dec 18 18:02:31 2014
New Revision: 1646501

URL: http://svn.apache.org/r1646501
Log:
VCL-702
Added check for usepublickeys in OS.pm::add_user_accounts.

Modified:
    vcl/trunk/managementnode/lib/VCL/Module/OS.pm

Modified: vcl/trunk/managementnode/lib/VCL/Module/OS.pm
URL: http://svn.apache.org/viewvc/vcl/trunk/managementnode/lib/VCL/Module/OS.pm?rev=1646501&r1=1646500&r2=1646501&view=diff
==============================================================================
--- vcl/trunk/managementnode/lib/VCL/Module/OS.pm (original)
+++ vcl/trunk/managementnode/lib/VCL/Module/OS.pm Thu Dec 18 18:02:31 2014
@@ -200,7 +200,14 @@ sub add_user_accounts {
 		my $username        = $reservation_users->{$user_id}{unityid};
 		my $uid             = $reservation_users->{$user_id}{uid};
 		my $root_access     = $reservation_users->{$user_id}{ROOTACCESS};
-		my $ssh_public_keys = $reservation_users->{$user_id}{sshpublickeys};
+		my $use_public_keys = $reservation_users->{$user_id}{usepublickeys};
+		
+		# If the $use_public_keys flag is set, retrieve the keys
+		my $ssh_public_keys;
+		if ($use_public_keys) {
+			$ssh_public_keys = $reservation_users->{$user_id}{sshpublickeys};
+		}
+		
 		my $password;
 		
 		# Check if entry needs to be added to the useraccounts table



Mime
View raw message