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; }