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

Cannot create docker containers without some fields.

    XMLWordPrintable

Details

    • Medium

    Description

      On the latest build namely:
      TrueNAS-SCALE-21.03-MASTER-20210317-072916

       

      When:
      When creating a "app" from docker image

      What happens:
      Some of the fields that are not mandatory are accessed anyways but they are not supplied. Clicking the add button and then not entering anything fixes the issue.

      We are at least talking about the following objects:

      ERROR TypeError: t.containerEnvironmentVariables[0] is undefined
      
      ERROR TypeError: t.volumes[0] is undefined
      
      ERROR TypeError: t.externalInterfaces[0] is undefined
      

       

      How to fix:
      Check before access if it even exists

      if t.containerEnvironmentVariables:
          t.containerEnvironmentVariables[0]
          etc etc...
      else:
          handle the empty case here


      how to fix might be redunant lol because you guys definitly know how to fix this :)
      Good luck!

      Attachments

        Attachments

          JEditor

            Activity

              People

                akarpov Alex Karpov
                Morrigan Morrigan
                Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved: