From b7e4a6591367c7fc56cce97fb1c07303f84532e2 Mon Sep 17 00:00:00 2001 From: lissav Date: Sun, 26 Aug 2012 11:16:52 +0000 Subject: [PATCH] fix defect 3555748 git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.7@13612 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/xcat/plugins/updatenode.pm | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/xCAT-server/lib/xcat/plugins/updatenode.pm b/xCAT-server/lib/xcat/plugins/updatenode.pm index 460f40056..8d42fbb1b 100644 --- a/xCAT-server/lib/xcat/plugins/updatenode.pm +++ b/xCAT-server/lib/xcat/plugins/updatenode.pm @@ -805,9 +805,10 @@ sub updatenode } } - # Check the existence of the synclist file - foreach my $synclist (keys %syncfile_node) - { + if (%syncfile_node) { # there are files to sync defined + # Check the existence of the synclist file + foreach my $synclist (keys %syncfile_node) + { if (!(-r $synclist)) { my $rsp = {}; @@ -816,8 +817,7 @@ sub updatenode xCAT::MsgUtils->message("E", $rsp, $callback); return 1; } - } - if (%syncfile_node) { # there are files to sync defined + } #Sync files to the target nodes foreach my $synclist (keys %syncfile_node) {