[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [OSSTEST PATCH 3/4] PDU: ipmi: Only log the first cmd run
This quietens the output again. Signed-off-by: Ian Jackson <ian.jackson@xxxxxxxxxxxxx> --- 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@xxxxxxxxxxxxxxxxxxxx https://lists.xenproject.org/mailman/listinfo/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |