r.sander
(Robert Sander)
1
I am trying to port our ruleset for check_imap
to the new API of version 2.3.
The version still working in 2.2 can be found here: check_mk_extensions/imap/web/plugins/wato/active_checks_imap.py at cmk2.2 · HeinleinSupport/check_mk_extensions · GitHub
My first try at the new API is here: check_mk_extensions/imap/rulesets/imap.py at cmk2.3 · HeinleinSupport/check_mk_extensions · GitHub
The new one always throws an error when opening the setup in the web application:
AttributeError: 'tuple' object has no attribute 'migrate'
I do not see a tuple in the value specs for the ruleset.
I am quite lost here. Does anybody have a clue for me?
MarcS
2
Hi Robert,
Remove the comma here in rulesets/imap.py and you no longer have a tuple 

Kind regards,
Marc
1 Like
r.sander
(Robert Sander)
3
Oh my. That was it. Thanks.
dabrain
(Andreas Breuer)
4
I’ve a question here as well, as we have to update our checks as well. Maybe a bit offtopic.
I thought we have to use v2 and not v1 for 2.3?! Okay it is still working but 2.3 always tells me then it is depricated?!
from cmk.rulesets.v1 import Help, Label, Title
from cmk.rulesets.v1.form_specs import (
r.sander
(Robert Sander)
5
The ruleset API was freshly introduced in 2.3, hence it got v1.
1 Like