Author: fapeeler
Date: Mon Aug 17 15:22:49 2009
New Revision: 805009

URL: http://svn.apache.org/viewvc?rev=805009&view=rev
Log:
VCL-185

left out uid in reserve routine

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

Modified: incubator/vcl/trunk/managementnode/lib/VCL/Module/OS/Linux.pm
URL: 
http://svn.apache.org/viewvc/incubator/vcl/trunk/managementnode/lib/VCL/Module/OS/Linux.pm?rev=805009&r1=805008&r2=805009&view=diff
==============================================================================
--- incubator/vcl/trunk/managementnode/lib/VCL/Module/OS/Linux.pm (original)
+++ incubator/vcl/trunk/managementnode/lib/VCL/Module/OS/Linux.pm Mon Aug 17 
15:22:49 2009
@@ -546,13 +546,15 @@
        my $image_identity       = $self->data->get_image_identity;
        my $imagemeta_rootaccess = $self->data->get_imagemeta_rootaccess();
        my $user_standalone      = $self->data->get_user_standalone();
+       my $user_uid                             = $self->data->get_user_uid();
 
-       my $useradd_string = "/usr/sbin/useradd -d /home/$user_name -m 
$user_name";
+       my $useradd_string = "/usr/sbin/useradd -u $user_uid -d 
/home/$user_name -m $user_name";
 
        my @sshcmd = run_ssh_command($computer_node_name, $image_identity, 
$useradd_string, "root");
        foreach my $l (@{$sshcmd[1]}) {
                if ($l =~ /user $user_name exists/) {
                        notify($ERRORS{'OK'}, 0, "detected user already has 
account");
+
                }
        }
 


Reply via email to