usr/src/lib/fm/topo/maps/SUNW,Sun-Fire-X4540/Sun-Fire-X4540-hc-topology.xmlgen
changeset 6869 b73cebb486c0
parent 6640 c92ca9b95b9c
child 7243 2f11e164daec
--- a/usr/src/lib/fm/topo/maps/SUNW,Sun-Fire-X4540/Sun-Fire-X4540-hc-topology.xmlgen	Thu Jun 12 16:23:34 2008 -0700
+++ b/usr/src/lib/fm/topo/maps/SUNW,Sun-Fire-X4540/Sun-Fire-X4540-hc-topology.xmlgen	Thu Jun 12 16:35:16 2008 -0700
@@ -188,10 +188,11 @@
 	if ($line =~ /range\s+name\s?=\s?\Wchassis\W/) {
 		$in_chassis_range = 1;
 	}
-	if ($in_chassis_range && ($line =~ /<\/dependents>/)) {
+
+	print OFILE "$line\n";
+
+	if ($in_chassis_range && ($line =~ /<dependents/)) {
 		last;
-	} else {
-		print OFILE "$line\n";
 	}
 }
 
@@ -208,7 +209,6 @@
 printf OFILE "    </dependents>\n\n";
 printf OFILE "  </range>\n";
 
-print OFILE "$line\n";
 while ($line = <IFILE>) {
 	print OFILE $line;
 }