Module: check_mk
Branch: master
Commit: 561fdb46c91ab5a9129899b7ed25cd258e053a1e
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=561fdb46c91ab5…
Author: Florian Kromer <fk(a)mathias-kettner.de>
Date: Wed Jan 16 13:07:56 2019 +0100
vsphere: make rule option "Additional display snapshots on" optional
CMK-1491
Change-Id: I2901f9405f7c13071993e960442c18cefd60eda4
---
cmk/gui/plugins/wato/datasource_programs.py | 51 ++++++++++++++---------------
1 file changed, 25 insertions(+), 26 deletions(-)
diff --git a/cmk/gui/plugins/wato/datasource_programs.py
b/cmk/gui/plugins/wato/datasource_programs.py
index e091740..b2dd7b9 100644
--- a/cmk/gui/plugins/wato/datasource_programs.py
+++ b/cmk/gui/plugins/wato/datasource_programs.py
@@ -24,43 +24,41 @@
# to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
# Boston, MA 02110-1301 USA.
+import cmk.gui.bi as bi
import cmk.gui.watolib as watolib
-from cmk.gui.i18n import _
from cmk.gui.exceptions import MKUserError
+from cmk.gui.i18n import _
+from cmk.gui.plugins.wato import (
+ IndividualOrStoredPassword,
+ RulespecGroup,
+ monitoring_macro_help,
+ register_rule,
+ rulespec_group_registry,
+)
from cmk.gui.valuespec import (
- HTTPUrl,
- ListChoice,
+ ID,
+ Alternative,
+ CascadingDropdown,
Checkbox,
- ListOf,
- FixedValue,
Dictionary,
- Integer,
- TextAscii,
- Password,
- Alternative,
- ListOfStrings,
DropdownChoice,
- Transform,
- TextUnicode,
- Tuple,
- ID,
- CascadingDropdown,
+ FixedValue,
Float,
+ HTTPUrl,
+ Integer,
+ ListChoice,
+ ListOf,
+ ListOfStrings,
+ MonitoringState,
+ Password,
RegExp,
RegExpUnicode,
- MonitoringState,
-)
-
-from cmk.gui.plugins.wato import (
- rulespec_group_registry,
- RulespecGroup,
- register_rule,
- monitoring_macro_help,
- IndividualOrStoredPassword,
+ TextAscii,
+ TextUnicode,
+ Transform,
+ Tuple,
)
-import cmk.gui.bi as bi
-
@rulespec_group_registry.register
class RulespecGroupDatasourcePrograms(RulespecGroup):
@@ -293,6 +291,7 @@ register_rule(
"timeout",
"vm_pwr_display",
"host_pwr_display",
+ "snapshot_display",
"vm_piggyname",
],
),