From 7aaa8059f04081ec47979edafff602e99f136b41 Mon Sep 17 00:00:00 2001 From: lissav Date: Tue, 11 Dec 2012 14:34:37 +0000 Subject: [PATCH] Allow MsgUtils to accept 0 as a return code on error git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14619 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- perl-xCAT/xCAT/MsgUtils.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/perl-xCAT/xCAT/MsgUtils.pm b/perl-xCAT/xCAT/MsgUtils.pm index d26fea205..4f7462669 100644 --- a/perl-xCAT/xCAT/MsgUtils.pm +++ b/perl-xCAT/xCAT/MsgUtils.pm @@ -408,7 +408,7 @@ sub message return; } - if ($exitcode) + if (defined($exitcode)) { push @{$rsp->{errorcode}}, $exitcode; }