diff options
author | Alexey Vekshin <some_hren@yahoo.com> | 2018-11-30 12:02:16 +0300 |
---|---|---|
committer | Paweł Krupa <pawel@krupa.net.pl> | 2018-11-30 11:02:16 +0200 |
commit | 7cbb47be0c26b5bd91e95ac010129668e4b49eb0 (patch) | |
tree | 99dd200da3f863b53278c5206d4696f941948b79 /contrib/sles11/netdata-python-plugin-sles11.patch | |
parent | 0cb72d21e879c96a02bcd450c5b61e9cc3a611d9 (diff) |
RPM spec and patches for sles 11 (#3708)
* RPM spec and patches for sles 11
* some fixes to alarm-notify.bash3 to make codacity happy
* replace ugly bash3 alarm notifier with trimmed rewrite
* notification format fixes
* update README for sles11 contrib
Diffstat (limited to 'contrib/sles11/netdata-python-plugin-sles11.patch')
-rw-r--r-- | contrib/sles11/netdata-python-plugin-sles11.patch | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/contrib/sles11/netdata-python-plugin-sles11.patch b/contrib/sles11/netdata-python-plugin-sles11.patch new file mode 100644 index 0000000000..d2e8f6b695 --- /dev/null +++ b/contrib/sles11/netdata-python-plugin-sles11.patch @@ -0,0 +1,28 @@ +diff -u netdata-1.10.0.orig/plugins.d/python.d.plugin netdata-1.10.0/plugins.d/python.d.plugin +--- netdata-1.10.0.orig/plugins.d/python.d.plugin 2018-05-08 20:01:40.000000000 +0300 ++++ netdata-1.10.0/plugins.d/python.d.plugin 2018-05-08 20:06:57.000000000 +0300 +@@ -15,10 +15,8 @@ + from sys import version_info, argv + from time import sleep + +-try: +- from time import monotonic as time +-except ImportError: +- from time import time ++# from time import monotonic as time ++from time import time + + PY_VERSION = version_info[:2] + PLUGIN_CONFIG_DIR = os.getenv('NETDATA_CONFIG_DIR', os.path.dirname(__file__) + '/../../../../etc/netdata') + '/' +@@ -32,10 +30,7 @@ + from bases.loggers import PythonDLogger + from bases.collection import setdefault_values, run_and_exit + +-try: +- from collections import OrderedDict +-except ImportError: +- from third_party.ordereddict import OrderedDict ++from ordereddict import OrderedDict + + BASE_CONFIG = {'update_every': os.getenv('NETDATA_UPDATE_EVERY', 1), + 'retries': 60, |