diff --git a/gui/views/inv_epsm.py b/gui/views/inv_epsm.py index 8a7bc4abcdd2e52598646c165d40840239f013bd..181049072d19625a5906efa6c08ec17dc04324a0 100644 --- a/gui/views/inv_epsm.py +++ b/gui/views/inv_epsm.py @@ -10,13 +10,14 @@ # inventory view for Noel epower switch # # 2023-04-22: moved to ~/local/lib/check_mk/gui/plugins/views -# +# 2023-06-14: removed declare_invtable_view from view definition on cmk 2.2 (see werk 15493) +# changed inventory_displayhints import (see werk 15493) + + -from cmk.gui.plugins.views.utils import ( - inventory_displayhints, -) from cmk.gui.i18n import _ -from cmk.gui.plugins.views.inventory import declare_invtable_view +from cmk.gui.views.inventory.registry import inventory_displayhints + inventory_displayhints.update({ '.hardware.devices:': {'title': _('Devices'), @@ -30,5 +31,3 @@ inventory_displayhints.update({ '.hardware.devices:*.detected': {'title': _('Detected'), }, '.hardware.devices:*.activated': {'title': _('Activated'), }, }) - -declare_invtable_view('invdevices', '.hardware.devices:', _('Devices'), _('Devices')) diff --git a/inv_epsm-0.1.0-20230614.mkp b/inv_epsm-0.1.0-20230614.mkp new file mode 100644 index 0000000000000000000000000000000000000000..9e9ecd3454c3010709c4ce8b51b83448a1cfa768 Binary files /dev/null and b/inv_epsm-0.1.0-20230614.mkp differ diff --git a/inv_epsm.mkp b/inv_epsm.mkp index 53fd77a409ff00fb66cc7af92d6a15ab6816c433..9e9ecd3454c3010709c4ce8b51b83448a1cfa768 100644 Binary files a/inv_epsm.mkp and b/inv_epsm.mkp differ diff --git a/packages/inv_epsm b/packages/inv_epsm index 7865506e0de9b962080d7072e1477f2de05a525a..2d8c98839b4312c59c5abb77c6ad1fc2fb25d522 100644 --- a/packages/inv_epsm +++ b/packages/inv_epsm @@ -4,7 +4,7 @@ 'files': {'agent_based': ['inv_epsm.py'], 'gui': ['views/inv_epsm.py']}, 'name': 'inv_epsm', 'title': 'Neol ePowerswitch inventory', - 'version': '0.0.2-20230614', - 'version.min_required': '2.1.0b1', + 'version': '0.1.0-20230614', + 'version.min_required': '2.2.0b1', 'version.packaged': '2.2.0p2', - 'version.usable_until': '2.2.0b1'} + 'version.usable_until': None}