From patchwork Wed Nov 9 10:23:37 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andy Whitcroft X-Patchwork-Id: 692682 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from huckleberry.canonical.com (huckleberry.canonical.com [91.189.94.19]) by ozlabs.org (Postfix) with ESMTP id 3tDMj64ZDqz9sR9; Wed, 9 Nov 2016 21:23:54 +1100 (AEDT) Received: from localhost ([127.0.0.1] helo=huckleberry.canonical.com) by huckleberry.canonical.com with esmtp (Exim 4.76) (envelope-from ) id 1c4Q2p-0001qL-JG; Wed, 09 Nov 2016 10:23:51 +0000 Received: from youngberry.canonical.com ([91.189.89.112]) by huckleberry.canonical.com with esmtp (Exim 4.76) (envelope-from ) id 1c4Q2d-0001oD-Fz for kernel-team@lists.ubuntu.com; Wed, 09 Nov 2016 10:23:39 +0000 Received: from 1.general.apw.uk.vpn ([10.172.192.78] helo=localhost) by youngberry.canonical.com with esmtpsa (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.76) (envelope-from ) id 1c4Q2d-0008LW-5F; Wed, 09 Nov 2016 10:23:39 +0000 From: Andy Whitcroft To: kernel-team@lists.ubuntu.com Subject: [yakkety/master-next 2/2] UBUNTU: hv_set_ifconfig -- ensure we include the last stanza Date: Wed, 9 Nov 2016 10:23:37 +0000 Message-Id: <20161109102337.6005-3-apw@canonical.com> X-Mailer: git-send-email 2.9.3 In-Reply-To: <20161109102337.6005-1-apw@canonical.com> References: <20161109102337.6005-1-apw@canonical.com> Cc: Andy Whitcroft X-BeenThere: kernel-team@lists.ubuntu.com X-Mailman-Version: 2.1.14 Precedence: list List-Id: Kernel team discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: kernel-team-bounces@lists.ubuntu.com Sender: kernel-team-bounces@lists.ubuntu.com BugLink: http://bugs.launchpad.net/bugs/1640109 Signed-off-by: Andy Whitcroft Acked-by: Colin Ian King --- debian/cloud-tools/hv_set_ifconfig | 3 +++ 1 file changed, 3 insertions(+) diff --git a/debian/cloud-tools/hv_set_ifconfig b/debian/cloud-tools/hv_set_ifconfig index 1ed7158..d8b0487 100755 --- a/debian/cloud-tools/hv_set_ifconfig +++ b/debian/cloud-tools/hv_set_ifconfig @@ -239,6 +239,9 @@ for line in flines: newfile += [line.strip()] prev_line=line +# Include pending stanza if any. +if inastanza and not pitchstanza: + newfile.extend(stanza) def emit(line):