Uploaded image for project: 'FreeNAS / TrueNAS'
  1. FreeNAS / TrueNAS
  2. NAS-101753

Fix traceback when processing alerts

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Done (View Workflow)
    • Priority: Low
    • Resolution: Complete
    • Affects Version/s: None
    • Fix Version/s: 11.2-U5
    • Component/s: Middleware
    • Labels:
      None

      JEditor

        Description

        [2019/05/11 19:14:48] (ERROR) middlewared.job.run():339 - Transient job failed
        Traceback (most recent call last):
          File "/usr/local/lib/python3.6/site-packages/middlewared/job.py", line 332, in run
            await self.future
          File "/usr/local/lib/python3.6/site-packages/middlewared/job.py", line 363, in __run_body
            rv = await self.method(*([self] + args))
          File "/usr/local/lib/python3.6/site-packages/middlewared/plugins/alert.py", line 256, in process_alerts
            if license and license.contract_type in [ContractType.silver.value, ContractType.gold.value]:
        AttributeError: 'tuple' object has no attribute 'contract_type'
        

          Attachments

            Attachments

              Issue Links

                Activity

                  People

                  Assignee:
                  themylogin Vladimir Vinogradenko
                  Reporter:
                  william William Grzybowski
                  Votes:
                  0 Vote for this issue
                  Watchers:
                  3 Start watching this issue

                    Dates

                    Created:
                    Updated:
                    Resolved:

                      Summary Panel