Package: dstat / 0.7.3-1.1

all_plugins_exclude_ntp_857973 Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
Description: exclude ntp from --all-plugins
 dstat allows to specify --all-plugins, a CLI option used by `make test` for
 testing purposes. Exclude the ntp plugin from the list as it performs network
 access.
Author: Emanuele Rocca <ema@debian.org>
Bug-Debian: https://bugs.debian.org/857973
Last-Update: 2019-02-23

--- dstat-0.7.3.orig/dstat
+++ dstat-0.7.3/dstat
@@ -177,6 +177,9 @@ class Options:
                 ### Make list unique in a fancy fast way
                 plugins = {}.fromkeys(allplugins).keys()
                 plugins.sort()
+                # Do not include ntp plugin as it performs network access. See
+                # https://bugs.debian.org/857973
+                plugins.remove('ntp')
                 self.plugins += plugins
             elif opt in ['--bits']:
                 self.bits = True