Module: check_mk
Branch: master
Commit: 6a26d401bfcf689b75b638121928d3064192cbb2
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=6a26d401bfcf68…
Author: Tom Baerwinkel <tb(a)mathias-kettner.de>
Date: Wed Sep 5 10:46:09 2018 +0200
Make enum module available in the check_api and update module docstring
Change-Id: I2eaf7e105020c41a942525cd3a52e7459fd413d0
---
cmk_base/check_api.py | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/cmk_base/check_api.py b/cmk_base/check_api.py
index 28d3512..1bba202 100644
--- a/cmk_base/check_api.py
+++ b/cmk_base/check_api.py
@@ -29,13 +29,16 @@ The things in this module specify the official Check_MK check API.
Meaning all
variables, functions etc. and default modules that are available to checks.
Modules available by default (pre imported by Check_MK):
+ collections
+ enum
fnmatch
math
re
socket
sys
+ os
time
-
+ pprint
Global variables:
from cmk.regex import regex
@@ -122,6 +125,7 @@ def get_check_api_context():
# TODO: Move imports directly to checks?
import collections
+import enum
import fnmatch
import math
import re