forked from pool/cloud-init
Dirk Mueller
ed9aa9f0d8
* skip checking for files in /etc/sysconfig that never exist on a wickedd based system OBS-URL: https://build.opensuse.org/package/show/Cloud:Tools/cloud-init?expand=0&rev=108
23 lines
806 B
Diff
23 lines
806 B
Diff
Index: cloudinit/util.py
|
|
===================================================================
|
|
--- cloudinit/util.py.orig
|
|
+++ cloudinit/util.py
|
|
@@ -35,6 +35,7 @@ import time
|
|
from errno import ENOENT, ENOEXEC
|
|
|
|
from base64 import b64decode, b64encode
|
|
+from signal import signal, SIGPIPE, SIG_DFL
|
|
from six.moves.urllib import parse as urlparse
|
|
|
|
import six
|
|
@@ -1858,7 +1859,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.
|