Module: check_mk
Branch: master
Commit: 4e99a63e3a86987ed56affc8a77bbe7c121bd096
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=4e99a63e3a8698…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Thu Dec 13 10:56:44 2018 +0100
DCD: Host attributes to set can now be configured per connection
The piggyback connector based connections can now be configured to
set custom host attributes.
CMK-1421
Change-Id: I4317ac161c6508b3b13ca9dc15ebe207b14dd065
---
cmk/gui/watolib.py | 3 +++
tests/unit/cmk/gui/test_watolib.py | 2 +-
2 files changed, 4 insertions(+), 1 deletion(-)
diff --git a/cmk/gui/watolib.py b/cmk/gui/watolib.py
index 44f6d23..6c35474 100644
--- a/cmk/gui/watolib.py
+++ b/cmk/gui/watolib.py
@@ -3408,6 +3408,9 @@ class ValueSpecAttribute(Attribute):
Attribute.__init__(self, name)
self._valuespec = vs
+ def valuespec(self):
+ return self._valuespec
+
def title(self):
return self._valuespec.title()
diff --git a/tests/unit/cmk/gui/test_watolib.py b/tests/unit/cmk/gui/test_watolib.py
index 2528956..813fdef 100644
--- a/tests/unit/cmk/gui/test_watolib.py
+++ b/tests/unit/cmk/gui/test_watolib.py
@@ -1,4 +1,4 @@
-import pytest
+import pytest # type: ignore
# Triggers plugin loading of plugins.wato which registers all the plugins
import cmk.gui.wato # pylint: disable=unused-import