2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-08-15 07:40:28 +00:00

Do not show error message when command failure

This commit is contained in:
GONG Jie
2019-03-14 15:15:54 +08:00
parent 98f479090f
commit 9b8068cb12

View File

@@ -608,7 +608,7 @@ sub get_conserver_version
# output format:
# conserver: conserver.com version 8.2.1
# conserver: default access type `r'
my @out = xCAT::Utils->runcmd("$cmd", 0);
my @out = xCAT::Utils->runcmd("$cmd", -1);
if ($::RUNCMD_RC != 0 || @out < 1) {
return undef;
}