Werk #3227: Automatic service adding: Fixed exception when using time range to skip automatic configuration

Component Checks & agents
Title Automatic service adding: Fixed exception when using time range to skip automatic configuration
Date Feb 22, 2016
Checkmk Edition Checkmk Raw (CRE)
Checkmk Version 1.2.8b3 1.4.0i1
Level Trivial Change
Class Bug Fix
Compatibility Compatible - no manual interaction needed

This fixes the exception:

Traceback (most recent call last):
  File "/omd/sites/stable/share/check_mk/modules/check_mk.py", line 5065, in <module>
    discover_marked_hosts()
  File "/omd/sites/stable/share/check_mk/modules/discovery.py", line 441, in discover_marked_hosts
    why_not = may_rediscover(params)
  File "/omd/sites/stable/share/check_mk/modules/discovery.py", line 389, in may_rediscover
    now = datetime.datetime.utcfromtimestamp(now_ts)
NameError: global name 'datetime' is not defined

To the list of all Werks