[yakkety/master-next 2/2] UBUNTU: hv_set_ifconfig -- ensure we include the last stanza

Andy Whitcroft apw at canonical.com
Wed Nov 9 10:23:37 UTC 2016


BugLink: http://bugs.launchpad.net/bugs/1640109
Signed-off-by: Andy Whitcroft <apw at canonical.com>
---
 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):
-- 
2.9.3





More information about the kernel-team mailing list