Branch: refs/heads/master
Home:
https://github.com/tribe29/checkmk
Commit: 78e5c9509fae77ce8ab7dd5f1bd1b0f711ac3909
https://github.com/tribe29/checkmk/commit/78e5c9509fae77ce8ab7dd5f1bd1b0f71…
Author: Max Linke <max.linke(a)tribe29.com>
Date: 2022-09-02 (Fri, 02 Sep 2022)
Changed paths:
A .werks/14676
M cmk/gui/plugins/wato/check_parameters/etherbox.py
M cmk/gui/plugins/wato/check_parameters/gcp_gcs.py
M cmk/gui/plugins/wato/check_parameters/psu_wattage.py
M cmk/gui/plugins/wato/utils/__init__.py
M cmk/gui/watolib/rulespecs.py
Log Message:
-----------
14676 FIX Item description in CheckParameterRuleSpecWithIte is mandatory
This change might break existing MKPs.
When writing a new rulespec for a check with an item the item_spec could be left blank.
However those are needed to properly render the rulespec and allow to enable a rulespec
only for
specific services of a check plugin.
Now the item_spec parameter is mandatory. The item_name, and item_help parameters have
been removed, with werk #14677.
Below is an example how to register a new rulespec for a check with an item.
C+:
rulespec_registry.register(
CheckParameterRulespecWithItem(
check_group_name="a_check",
item_spec=lambda: TextInput(title="fitting item name",
help="inline help text"),
group=RulespecGroupCheckParametersApplications,
parameter_valuespec=_parameter_valuespec_network,
title=lambda: "A good title",
)
)
C-:
Change-Id: If40633b6088b6531c66fab6970ba8e30b3145d81