From db70dcfaa37067a87fade809e2fdbd30786cd1be Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Thu, 29 May 2014 10:32:02 -0400 Subject: [PATCH] Fix output that occurs on require xCAT::Client when ip is not in path --- perl-xCAT/xCAT/Client.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/perl-xCAT/xCAT/Client.pm b/perl-xCAT/xCAT/Client.pm index 66b4374c7..e604c45a0 100644 --- a/perl-xCAT/xCAT/Client.pm +++ b/perl-xCAT/xCAT/Client.pm @@ -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; }