Blame SOURCES/nfs-utils-1.3.0-mountstats-iostats.patch

64c563
diff -up nfs-utils-1.3.0/tools/mountstats/mountstats.py.orig nfs-utils-1.3.0/tools/mountstats/mountstats.py
64c563
--- nfs-utils-1.3.0/tools/mountstats/mountstats.py.orig	2017-04-08 15:23:53.524215286 -0400
64c563
+++ nfs-utils-1.3.0/tools/mountstats/mountstats.py	2017-04-08 15:30:45.862043179 -0400
64c563
@@ -565,7 +565,10 @@ class DeviceData:
64c563
         for the nfsstat command.
64c563
         """
64c563
         for op in new_stats.__rpc_data['ops']:
64c563
-            self.__rpc_data[op] = list(map(add, self.__rpc_data[op], new_stats.__rpc_data[op]))
64c563
+            try:
64c563
+                self.__rpc_data[op] = list(map(add, self.__rpc_data[op], new_stats.__rpc_data[op]))
64c563
+            except KeyError:
64c563
+                continue
64c563
 
64c563
     def __print_rpc_op_stats(self, op, sample_time):
64c563
         """Print generic stats for one RPC op