From 41e73881de136f4b4f3744e3c77334c9e34008cb 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 82ad81018..2fa624ba3 100644 --- a/perl-xCAT/xCAT/Client.pm +++ b/perl-xCAT/xCAT/Client.pm @@ -29,7 +29,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; }