diff --git a/xCAT-server/lib/perl/xCAT/SvrUtils.pm b/xCAT-server/lib/perl/xCAT/SvrUtils.pm index 568293016..7286c26ab 100644 --- a/xCAT-server/lib/perl/xCAT/SvrUtils.pm +++ b/xCAT-server/lib/perl/xCAT/SvrUtils.pm @@ -264,6 +264,7 @@ sub getsynclistfile() my %osimage_syncfile = (); my @profiles = (); + if ($nodes) { # get the profile attributes for the nodes my $nodetype_t = xCAT::Table->new('nodetype'); unless ($nodetype_t) { @@ -285,6 +286,7 @@ sub getsynclistfile() push @profiles, $profile; } } + } # get the syncfiles base on the osimage my $osimage_t = xCAT::Table->new('osimage');