From patchwork Mon Apr 10 16:48:57 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ian Jackson X-Patchwork-Id: 9673467 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 81B9E600CB for ; Mon, 10 Apr 2017 16:51:20 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7FA232041F for ; Mon, 10 Apr 2017 16:51:20 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 74BEC2811C; Mon, 10 Apr 2017 16:51:20 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 2C5722041F for ; Mon, 10 Apr 2017 16:51:20 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cxcV8-0000pn-Ho; Mon, 10 Apr 2017 16:49:14 +0000 Received: from mail6.bemta3.messagelabs.com ([195.245.230.39]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cxcV7-0000pY-LO for xen-devel@lists.xenproject.org; Mon, 10 Apr 2017 16:49:13 +0000 Received: from [85.158.137.68] by server-4.bemta-3.messagelabs.com id D3/EC-03705-887BBE85; Mon, 10 Apr 2017 16:49:12 +0000 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrGLMWRWlGSWpSXmKPExsWS0XRdVbdj++s Ig2snBSy+b5nM5MDocfjDFZYAxijWzLyk/IoE1oy3t5eyFMxgrfg3t6KBcQVLFyMXh5DAF0aJ 30sfsEI4txglll7ewAzhrGSUmLnnI1AZJwebgK5E05a/bCC2iICSxL1Vk5m6GDk4mAW0Jc5tl wcJCwsESuz42AhWwiKgKvFi6idGEJtXwF1i35LzzCC2hICiRPezCWwTGLkWMDKsYtQoTi0qSy 3SNTLVSyrKTM8oyU3MzNE1NDDWy00tLk5MT81JTCrWS87P3cQI9GM9AwPjDsbWE36HGCU5mJR EeQNmvo4Q4kvKT6nMSCzOiC8qzUktPsQow8GhJMFruw0oJ1iUmp5akZaZAwwomLQEB4+SCO+N rUBp3uKCxNzizHSI1ClGXY45976+ZxJiycvPS5US5xUAmSEAUpRRmgc3AhbclxhlpYR5GRkYG IR4ClKLcjNLUOVfMYpzMCoJ89aATOHJzCuB2/QK6AgmoCPO7HoJckRJIkJKqoEx//4Eo7BLWf FnF82WZV5fdqzSbLn/aeZbHzmSpN/s2HZxTseXrD9q7qtFv3t4GM6xLlpYtPtJ2U01jw8MH+4 7/ei0XVenIZR1oyjONpVd49cLgQ+B7sannQT1jGefYRJmv/M8Vfi86X6GgMye65O/iGTZNPtV fum44v1s6h3zhwuP3f4gEXlKiaU4I9FQi7moOBEA9vsItGkCAAA= X-Env-Sender: iwj@xenbits.xen.org X-Msg-Ref: server-2.tower-31.messagelabs.com!1491842951!83467520!1 X-Originating-IP: [104.130.215.37] X-SpamReason: No, hits=0.0 required=7.0 tests= X-StarScan-Received: X-StarScan-Version: 9.4.12; banners=-,-,- X-VirusChecked: Checked Received: (qmail 28454 invoked from network); 10 Apr 2017 16:49:12 -0000 Received: from mail.xenproject.org (HELO mail.xenproject.org) (104.130.215.37) by server-2.tower-31.messagelabs.com with AES128-GCM-SHA256 encrypted SMTP; 10 Apr 2017 16:49:12 -0000 Received: from host146.205.237.98.conversent.net ([205.237.98.146] helo=infra.test-lab.xenproject.org) by mail.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cxcV4-00069t-T0; Mon, 10 Apr 2017 16:49:10 +0000 Received: from [172.16.144.3] (helo=osstest.test-lab.xenproject.org) by infra.test-lab.xenproject.org with esmtp (Exim 4.80) (envelope-from ) id 1cxcUz-0006it-Ea; Mon, 10 Apr 2017 16:49:05 +0000 Received: from iwj by osstest.test-lab.xenproject.org with local (Exim 4.80) (envelope-from ) id 1cxcUz-0000GS-8y; Mon, 10 Apr 2017 16:49:05 +0000 From: Ian Jackson To: xen-devel@lists.xenproject.org Date: Mon, 10 Apr 2017 16:48:57 +0000 Message-Id: <1491842944-679-1-git-send-email-ian.jackson@eu.citrix.com> X-Mailer: git-send-email 1.7.10.4 Cc: Ian Jackson Subject: [Xen-devel] [PATCH 1/8] selecthost: Default pdu to "unsupported" rather than nothing X-BeenThere: xen-devel@lists.xen.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: xen-devel-bounces@lists.xen.org Sender: "Xen-devel" X-Virus-Scanned: ClamAV using ClamSMTP Signed-off-by: Ian Jackson --- Osstest/TestSupport.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Osstest/TestSupport.pm b/Osstest/TestSupport.pm index 4ced6c0..a498ddd 100644 --- a/Osstest/TestSupport.pm +++ b/Osstest/TestSupport.pm @@ -814,7 +814,7 @@ sub serial_fetch_logs ($) { sub power_cycle_host_setup ($) { my ($ho) = @_; my $methobjs = [ ]; - foreach my $meth (split /\;\s*/, $ho->{Power}) { + foreach my $meth (split /\;\s*/, ($ho->{Power} // 'unsupported')) { push @$methobjs, get_host_method_object($ho,'PDU',$meth); } $ho->{PowerMethobjs} = $methobjs;