Werk #14549: mongodb_collections, mongodb_replica_set: Fix date parsing error

Component Checks & agents
Title <tt>mongodb_collections</tt>, <tt>mongodb_replica_set</tt>: Fix date parsing error
Date Aug 3, 2022
Checkmk Editon Checkmk Raw (CRE)
Checkmk Version 2.2.0i1 2.1.0p10 2.0.0p28
Level Trivial Change
Class Bug Fix
Compatibility Compatible - no manual interaction needed

Depending on the pymongo version on the host system, the two check plugins mentioned above crashed with

TypeError: unsupported operand type(s) for /: 'str' and 'float'
TypeError: unsupported operand type(s) for -: 'str' and 'str'

To the list of all Werks