Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-82015

Fix mongo-container login script issue where old expansion variable name is used as a bash variable name

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Minor - P4 Minor - P4
    • 7.2.0-rc0
    • None
    • None
    • None
    • Fully Compatible
    • ALL

    Description

      In BF-30343:

      • Originally, the ${registry_username} was getting expanded to the value defined in the previous function since evergreen expansion is executed before bash interpretation
      • After the evergreen update in EVG-20276, the expansion the previous function defines registry_username is getting reset to an empty string
      • Even though bash would've properly interpreted ${registry_username}, since evergreen is expanding the variable before bash gets a chance to see, it's left with an empty string

      Evergreen only expands variables wrapped in curly braces, so switching from ${registry_username} to $registry_username prevents evergreen from expanding registry_username and gives bash the chance to actually interpret it as a bash variable.

      Attachments

        Activity

          People

            zack.winter@mongodb.com Zack Winter
            zack.winter@mongodb.com Zack Winter
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: