SHA256
1
0
forked from pool/cloud-init
cloud-init/cloud-init-python2-sigpipe.patch
Robert Schweikert 8e9fedcf49 - update to version 0.7.8 (bsc#998103)
+ added cloud-init-net-eni.patch based on work by eblock
   - Using config-drive instead of metadata failed because the network 
     translation to Ubuntu-style did not return gateway information to
     opensuse.py
 + added cloud-init-service.patch based on work by eblock
   - The service file cloud-init.service referenced networking.service
     which on SUSE is network.service
 + remove no_logic_change.patch included in updated upstream source
 + forward port suseIntegratedHandler.patch
 + forward port setupSUSEsysVInit.diff
 + forward port cloud-init-no-dmidecode-on-ppc64.patch
 + foward port dataSourceOpenNebula.patch
 + forward port fix-default-systemd-unit-dir.patch
 + forward port cloud-init-finalbeforelogin.patch
 + forward port cloud-init-python2-sigpipe.patch
 + SmartOS: more improvements for network configuration
 + add ntp config module [Ryan Harper]
 + ChangeLog: update changelog for previous commit.
 + Add distro tags on config modules that should have it.
 + NoCloud: fix bug providing network-interfaces via meta-data. (LP: 1577982)
 + ConfigDrive: recognize 'tap' as a link type. (LP: #1610784)
 + Upgrade to a configobj package new enough to work
 + MAAS: add vendor-data support (LP: #1612313)
 + DigitalOcean: use the v1.json endpoint [Ben Howard]
 + Get Azure endpoint server from DHCP client [Brent Baude]
 + Apt: add new apt configuration format [Christian Ehrhardt]
 + distros: fix get_primary_arch method use of os.uname [Andrew Jorgensen]
 + Fix Gentoo net config generation [Matthew Thode]
 + Minor cleanups to atomic_helper and add unit tests.

OBS-URL: https://build.opensuse.org/package/show/Cloud:Tools/cloud-init?expand=0&rev=43
2016-09-13 16:56:10 +00:00

21 lines
674 B
Diff

--- cloudinit/util.py.orig
+++ cloudinit/util.py
@@ -46,6 +46,7 @@ import tempfile
import time
from base64 import b64decode, b64encode
+from signal import signal, SIGPIPE, SIG_DFL
from six.moves.urllib import parse as urlparse
import six
@@ -1802,7 +1803,8 @@ def subp(args, data=None, rcs=None, env=
sp = subprocess.Popen(args, stdout=stdout,
stderr=stderr, stdin=stdin,
- env=env, shell=shell)
+ env=env, shell=shell,
+ preexec_fn=lambda: signal(SIGPIPE, SIG_DFL))
(out, err) = sp.communicate(data)
# Just ensure blank instead of none.