VCL-1083
Fixed logic problem in Linux.pm::delete_user introduced in previous commit to prevent home directories on non-local disks from being deleted.
diff --git a/managementnode/lib/VCL/Module/OS/Linux.pm b/managementnode/lib/VCL/Module/OS/Linux.pm
index dda70ab..8ddc684 100644
--- a/managementnode/lib/VCL/Module/OS/Linux.pm
+++ b/managementnode/lib/VCL/Module/OS/Linux.pm
@@ -3097,9 +3097,11 @@
# Assemble the userdel command
my $userdel_command = "/usr/sbin/userdel";
- my $delete_home_directory = 1;
+ my $delete_home_directory = 0;
if ($home_directory_on_local_disk) {
+ $delete_home_directory = 1;
+
# Fetch exclude_list
my @exclude_list = $self->get_exclude_list();
if ((grep(/\/home\/$username/, @exclude_list))) {