This quietens the output again. Signed-off-by: Ian Jackson <ian.jack...@eu.citrix.com> --- Osstest/PDU/ipmi.pm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/Osstest/PDU/ipmi.pm b/Osstest/PDU/ipmi.pm index f3a50c9..b6621db 100644 --- a/Osstest/PDU/ipmi.pm +++ b/Osstest/PDU/ipmi.pm @@ -50,11 +50,12 @@ sub pdu_power_state { my $onoff= $on ? "on" : "off"; my @cmd = (qw(ipmitool -H), $mo->{Mgmt}, - '-U',$mo->{User}, '-P',$mo->{Pass}); + + my $cmd_logged; my $getstatus = sub { my @scmd = (@cmd, qw(power status)); - logm("PDU IMPI: @scmd"); + logm("PDU IMPI: @scmd") unless $cmd_logged++; open IPMI, "-|", @scmd or die $!; my $status = do { local $/=undef; <IPMI>; }; $?=0; $!=0; -- 2.1.4 _______________________________________________ Xen-devel mailing list Xen-devel@lists.xenproject.org https://lists.xenproject.org/mailman/listinfo/xen-devel