|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [OSSTEST PATCH 03/26] power: ipmi_try: Use `use parent' instead of Exporter
This module already has a superclass, `ipmi'. Import it with `use
parent' instead of Exporter.
Signed-off-by: Ian Jackson <ian.jackson@xxxxxxxxxxxxx>
---
Osstest/PDU/ipmi_try.pm | 14 +-------------
1 file changed, 1 insertion(+), 13 deletions(-)
diff --git a/Osstest/PDU/ipmi_try.pm b/Osstest/PDU/ipmi_try.pm
index 64b43dd2..cf851d21 100644
--- a/Osstest/PDU/ipmi_try.pm
+++ b/Osstest/PDU/ipmi_try.pm
@@ -22,20 +22,8 @@ use warnings;
use Osstest;
use Osstest::TestSupport;
use IO::File;
-use Osstest::PDU::ipmi;
-use parent Osstest::PDU::unsupported;
-
-BEGIN {
- use Exporter ();
- our ($VERSION, @ISA, @EXPORT, @EXPORT_OK, %EXPORT_TAGS);
- $VERSION = 1.00;
- @ISA = qw(Exporter Osstest::PDU::ipmi);
- @EXPORT = qw();
- %EXPORT_TAGS = ( );
-
- @EXPORT_OK = qw();
-}
+use parent qw(Osstest::PDU::ipmi);
sub pdu_power_state {
my ($mo, $on) = @_;
--
2.11.0
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/mailman/listinfo/xen-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |