From 1fbfc40df15096d644353f93f2005bd2393b6c32 Mon Sep 17 00:00:00 2001 From: lissav Date: Thu, 27 Sep 2012 13:51:15 +0000 Subject: [PATCH] checkin call to CFMUtils more testing needed git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13906 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/xcat/plugins/updatenode.pm | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/xCAT-server/lib/xcat/plugins/updatenode.pm b/xCAT-server/lib/xcat/plugins/updatenode.pm index 6cc21dd60..049b712f5 100644 --- a/xCAT-server/lib/xcat/plugins/updatenode.pm +++ b/xCAT-server/lib/xcat/plugins/updatenode.pm @@ -20,6 +20,7 @@ use xCAT::TableUtils; use xCAT::ServiceNodeUtils; use xCAT::NetworkUtils; use xCAT::InstUtils; +use xCAT::CFMUtils; use Getopt::Long; use xCAT::GlobalDef; use Sys::Hostname; @@ -481,6 +482,17 @@ sub preprocess_updatenode # the CFMUtils my @imagenames=xCAT::TableUtils->getimagenames(\@nodes); # Now here we will call CFMUtils + $::CALLBACK=$callback; + my $rc=0; + #$rc=xCAT::CFMUtils->updateCFMSynclistFile(\@imagenames); + if ($rc !=0) { + my $rsp = {}; + $rsp->{data}->[0] = + "The call to CFMUtils to build synclist returned an errorcode=$rc."; + $callback->($rsp); + return; + + } } # if not -S or -P or --security