From: Ian Jackson Date: Thu, 12 Mar 2015 13:15:27 +0000 (+0000) Subject: convert-cabinet-layout: Cope with new PDU-{1,2} field names X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=40be7815d15ea41744ca31cc974d597718912b6b;p=people%2Fiwj%2Fcolo-for-testing.git convert-cabinet-layout: Cope with new PDU-{1,2} field names --- diff --git a/convert-cabinet-layout b/convert-cabinet-layout index ab18132..d31ced9 100755 --- a/convert-cabinet-layout +++ b/convert-cabinet-layout @@ -150,8 +150,8 @@ while (my $row = csv_row()) { reportno 'Ether'; eval { - my $pdu1 = $row->{'PDU-1 Port'}; - my $pdu2 = $row->{'PDU-2 Port'}; + my $pdu1 = $row->{'PDU-1'}; + my $pdu2 = $row->{'PDU-2'}; !!$pdu1 != !!$pdu2 or die "wrong # pdus\n"; my ($pdu,$port); if ($pdu1) { $pdu='pdu1'; $port=$pdu1; }