Uploaded image for project: 'TrueNAS'
  1. TrueNAS
  2. NAS-107742

alert.list_categories traceback

    XMLWordPrintable

    Details

      Description

      midclt call alert.list_categories
      <AlertCategory.APPLICATIONS: 'APPLICATIONS'>
      Traceback (most recent call last):
        File "/usr/lib/python3/dist-packages/middlewared/main.py", line 136, in call_method
          result = await self.middleware._call(message['method'], serviceobj, methodobj, params, app=self,
        File "/usr/lib/python3/dist-packages/middlewared/main.py", line 1196, in _call
          return await methodobj(*prepared_call.args)
        File "/usr/lib/python3/dist-packages/middlewared/schema.py", line 973, in nf
          return await f(*args, **kwargs)
        File "/usr/lib/python3/dist-packages/middlewared/plugins/alert.py", line 258, in list_categories
          return [
        File "/usr/lib/python3/dist-packages/middlewared/plugins/alert.py", line 261, in <listcomp>
          "title": alert_category_names[alert_category],
      KeyError: <AlertCategory.APPLICATIONS: 'APPLICATIONS'>

       

      Maybe be a regression from kubernetes implementation, if not, please pass back to Vladimir.

        Attachments

          Attachments

            JEditor

              Activity

                People

                Assignee:
                waqar Waqar Ahmed
                Reporter:
                william William Grzybowski
                Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved: