From 25cadc1e2978548ae6835aa1e686ed9530897a01 Mon Sep 17 00:00:00 2001 From: wanghuaz Date: Wed, 21 Apr 2010 09:33:56 +0000 Subject: [PATCH] For HMC, we should not out id and parent attribute in stanza or xml format. Remove these two attributes in stanza and xml formatting git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@5833 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/xcat/plugins/lsslp.pm | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/xCAT-server/lib/xcat/plugins/lsslp.pm b/xCAT-server/lib/xcat/plugins/lsslp.pm index 7d16f3bcc..d2ebf0123 100644 --- a/xCAT-server/lib/xcat/plugins/lsslp.pm +++ b/xCAT-server/lib/xcat/plugins/lsslp.pm @@ -2083,9 +2083,12 @@ sub format_stanza { $d = $data[$i++]; } elsif ( $type =~ /^bpa$/ ) { $i++; + } else { + $i++; + next; } $i++; - } elsif ( /^side$/ ) { + } elsif ( /^side$/ or /^parent$/ ) { if ( $type !~ /^(fsp|bpa)$/ ) { next; } @@ -2157,9 +2160,12 @@ sub format_xml { $d = $data[$i++]; } elsif ( $type =~ /^bpa$/ ) { $i++; + } else { + $i++; + next; } $i++; - } elsif ( /^side$/ ) { + } elsif ( /^side$/ or /^parent$/ ) { if ( $type !~ /^(fsp|bpa)$/ ) { next; }