mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-08-17 16:50:22 +00:00
fix indent
This commit is contained in:
@@ -6311,32 +6311,31 @@ sub run_always_rsync_postscripts
|
||||
}
|
||||
|
||||
foreach my $host (@hosts) {
|
||||
|
||||
# build xdsh queue
|
||||
# build host and all scripts to execute
|
||||
# EXECUTEALWAYS will only execute the syncfile in the syncfile list
|
||||
foreach my $key (keys %{$$options{'destDir_srcFile'}{$host}}) {
|
||||
foreach my $key1 (keys %{ $$options{'destDir_srcFile'}{$host}->{$key} }) {
|
||||
my $index = 0;
|
||||
my $key1_ref = $$options{'destDir_srcFile'}{$host}->{$key}->{$key1};
|
||||
if (ref $key1_ref eq 'ARRAY') { #stored as ARRAY for same_dest_name
|
||||
while (my $src_file =$key1_ref->[$index] ) {
|
||||
if ($src_file eq $tmppostfile) {
|
||||
push(@{ $dshparms->{'postscripts'}{$postsfile} }, $host);
|
||||
}
|
||||
$index++;
|
||||
}
|
||||
} else { #stroed as hash table for diff_dest_name
|
||||
foreach my $src_file (keys %{$key1_ref}) {
|
||||
if ($src_file eq $tmppostfile) {
|
||||
push(@{ $dshparms->{'postscripts'}{$postsfile} }, $host);
|
||||
}
|
||||
}
|
||||
} #end else
|
||||
} #end if
|
||||
} #end foreach key1
|
||||
} #end foreach key
|
||||
} #end foreach host
|
||||
foreach my $key1 (keys %{ $$options{'destDir_srcFile'}{$host}->{$key} }) {
|
||||
my $index = 0;
|
||||
my $key1_ref = $$options{'destDir_srcFile'}{$host}->{$key}->{$key1};
|
||||
if (ref $key1_ref eq 'ARRAY') { #stored as ARRAY for same_dest_name
|
||||
while (my $src_file =$key1_ref->[$index] ) {
|
||||
if ($src_file eq $tmppostfile) {
|
||||
push(@{ $dshparms->{'postscripts'}{$postsfile} }, $host);
|
||||
}
|
||||
$index++;
|
||||
}
|
||||
} else { #stroed as hash table for diff_dest_name
|
||||
foreach my $src_file (keys %{$key1_ref}) {
|
||||
if ($src_file eq $tmppostfile) {
|
||||
push(@{ $dshparms->{'postscripts'}{$postsfile} }, $host);
|
||||
}
|
||||
}
|
||||
} #end else
|
||||
} #end foreach key1
|
||||
} #end foreach key
|
||||
} #end foreach host
|
||||
} #end foreach postsfile
|
||||
|
||||
# now if we have postscripts to run, run xdsh
|
||||
my $out;
|
||||
|
Reference in New Issue
Block a user