From aee2c913c614a46550034993d69359da2615fbc3 Mon Sep 17 00:00:00 2001 From: wanghuaz Date: Mon, 9 Aug 2010 07:53:23 +0000 Subject: [PATCH] remove the comment line in out of '/usr/sbin/lsnim -a if1 -Z master' git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@7009 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/xcat/plugins/aixinstall.pm | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/xCAT-server/lib/xcat/plugins/aixinstall.pm b/xCAT-server/lib/xcat/plugins/aixinstall.pm index 97ec3361b..cb7f3b116 100644 --- a/xCAT-server/lib/xcat/plugins/aixinstall.pm +++ b/xCAT-server/lib/xcat/plugins/aixinstall.pm @@ -7902,7 +7902,15 @@ sub checkNIMnetworks return 1; } - my ($junk1, $junk2, $adapterhost) = split(':', $ifone); + my $junk1; + my $junk2; + my $adapterhost; + my @ifcontent = split('\n',$ifone); + foreach my $line (@ifcontent) { + next if (/#/); + ($junk1, $junk2, $adapterhost) = split(':', $line); + last; + } #my $adapterIP = inet_ntoa(inet_aton($adapterhost));