Fix retry loop in jstests/external_auth/lib/ldap_container.py

XMLWordPrintableJSON

    • Server Security
    • ALL
    • 200
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      The retry loop never increases the retry counter so the loop runs forever.

      diff --git a/src/mongo/db/modules/enterprise/jstests/external_auth/lib/ldap_container.py b/src/mongo/db/modules/enterprise/jstests/external_auth/lib/ldap_container.py
      index f74e358a447..42982b10e4f 100644
      --- a/src/mongo/db/modules/enterprise/jstests/external_auth/lib/ldap_container.py
      +++ b/src/mongo/db/modules/enterprise/jstests/external_auth/lib/ldap_container.py
      @@ -82,8 +82,11 @@ def _build_image(image_name: str) -> bool:
                   ]
               )
       
      +        retry += 1
      +
               if ret == 0:
                   return True
      +
           return False
       

              Assignee:
              Unassigned
              Reporter:
              Mark Benvenuto
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: