cmk.gui.plugins.wato.SNMPCredentials for new form_specs API?

Hi,

I am currently trying to migrate the ruleset for check_snmp where cmk.gui.plugins.wato.SNMPCredentials is in use.

When this is used in a new style ruleset the application throws an exception: AttributeError: 'Alternative' object has no attribute 'migrate'.

How do I migrate my ruleset?

Hi @moritz,

why is SNMPCredentials() still returning an Alternative() in the git master branch?

Shouldn’t this also use the form_specs API you force us to use?

There should be a wrapper for the converter to tell not to convert this ValueSpec.

Found it. It’s only in 2.4 though. Grep for LegacyValueSpec.

1 Like