Fix output that occurs on require xCAT::Client when ip is not in path

This commit is contained in:
Jarrod Johnson 2014-05-29 10:32:02 -04:00
parent de8815cb0b
commit db70dcfaa3

View File

@ -27,7 +27,7 @@ if ($inet6support) {
if ($^O =~ /^linux/i) {
# Is IPv6 enabled on the MN or xcat client node at all?
my $ipv6enabled = `ip addr | grep inet6`;
my $ipv6enabled = `ip addr 2> /dev/null | grep inet6`;
if (!$ipv6enabled) {
$inet6support = 0;
}