From: Ian Jackson Subject: [OSSTEST PATCH 01/32] PDU: msw: support arbitrary arguments Date: Tue, 24 Mar 2015 19:02:24 +0000 Message-ID: <1427223775-8592-2-git-send-email-ian.jackson@eu.citrix.com> References: <1427223775-8592-1-git-send-email-ian.jackson@eu.citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta14.messagelabs.com ([193.109.254.103]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1YaU75-0000tO-9P for xen-devel@lists.xenproject.org; Tue, 24 Mar 2015 19:03:43 +0000 In-Reply-To: <1427223775-8592-1-git-send-email-ian.jackson@eu.citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: xen-devel@lists.xenproject.org Cc: Ian Jackson , Ian Campbell List-Id: xen-devel@lists.xenproject.org No functional change with existing host properties. Signed-off-by: Ian Jackson --- Osstest/PDU/msw.pm | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Osstest/PDU/msw.pm b/Osstest/PDU/msw.pm index 40a2970..c159cc3 100644 --- a/Osstest/PDU/msw.pm +++ b/Osstest/PDU/msw.pm @@ -34,14 +34,15 @@ BEGIN { } sub new { - my ($class, $ho, $methname,$pdu,$port) = @_; - return bless { Pdu => $pdu, Port => $port }, $class; + my ($class, $ho, $methname, @args) = @_; + + return bless { Args => \@args }, $class; } sub pdu_power_state { my ($mo, $on) = @_; my $onoff= $on ? "on" : "off"; - system_checked("./pdu-msw $mo->{Pdu} $mo->{Port} $onoff"); + system_checked("./pdu-msw @{ $mo->{Args} } $onoff"); } 1; -- 1.7.10.4