From df1bc2006d392679690d098b394f9fa5086a826b Mon Sep 17 00:00:00 2001 From: lissav Date: Thu, 6 Mar 2008 20:32:53 +0000 Subject: [PATCH] Fix error handling git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@718 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server-2.0/lib/xcat/plugins/CONSsn.pm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/xCAT-server-2.0/lib/xcat/plugins/CONSsn.pm b/xCAT-server-2.0/lib/xcat/plugins/CONSsn.pm index 1333d3074..3fef10f96 100644 --- a/xCAT-server-2.0/lib/xcat/plugins/CONSsn.pm +++ b/xCAT-server-2.0/lib/xcat/plugins/CONSsn.pm @@ -97,16 +97,18 @@ sub setup_CONS # make the consever 8 configuration file $cmd = "makeconservercf"; - xCAT::Utils->runcmd($cmd, -1); + xCAT::Utils->runcmd($cmd, 0); if ($::RUNCMD_RC != 0) { # error xCAT::MsgUtils->message("S", "Error running $cmd"); + return 1; } my $cmd = "chkconfig conserver on"; xCAT::Utils->runcmd($cmd, 0); if ($::RUNCMD_RC != 0) { # error xCAT::MsgUtils->message("S", "Error chkconfig conserver on"); + return 1; } # start conserver