This project is mirrored from https://:*****@github.com/hashicorp/terraform.git. Pull mirroring failed .
Repository mirroring has been paused due to too many failed attempts. It can be resumed by a project maintainer.
  1. 03 Nov, 2021 9 commits
  2. 02 Nov, 2021 10 commits
    • James Bardin's avatar
      backport of commit ca6d3cf5 · b9790c0e
      James Bardin authored
      b9790c0e
    • Omar Ismail's avatar
      backport of commit 1da70318 · c10dfa88
      Omar Ismail authored
      c10dfa88
    • Chris Arcand's avatar
      Update CHANGELOG.md · ece80c0f
      Chris Arcand authored
      ece80c0f
    • Chris Arcand's avatar
      Merge pull request #29860 from hashicorp/fix-init-after-error-take-two · f04ea2bd
      Chris Arcand authored
      command: Update backend hash value only after a successful migration
      f04ea2bd
    • Chris Arcand's avatar
      command: Don't always update backend hash when fetching the saved backend · 7c0c2e95
      Chris Arcand authored
      The Meta.backend_C_r_S_unchanged() method was sadly a bit of a mess.
      
      It seems to have originally been used as a method to be called
      when the backend is not changing, with an extra assumption that if the
      configured backend's hash doesn't match the one in state, surely the
      hash should just be updated as an option might have been moved to
      command line flags.
      
      However, this function was used throughout this file as 'the method to
      load the initialized (but not necessarily configured) backend',
      regardless of whether or not it is the same (unchanged). This is in
      addition to Meta.backendFromState(), which is used to load the same
      thing except in the main codepath of 'init -backend=false'.
      
      These changes separate the concerns of backend_C_r_S_unchanged() by
      
      1) Fetching the saved backend (savedBackend())
      2) Updating the hash value in the backend cache when appropriate (either
         by leaving it to the caller to do themselves or by calling
         updateSavedupdateSavedBackendHash())
      
      This allows migration codepaths to *not* update the hash value until
      after a migration has successfully taken place.
      7c0c2e95
    • James Bardin's avatar
      backport of commit 647d3606 · c59da67b
      James Bardin authored
      c59da67b
    • James Bardin's avatar
      backport of commit 6b8b0617 · f7566d59
      James Bardin authored
      f7566d59
    • Alisdair McDiarmid's avatar
      Update CHANGELOG.md · f019fb11
      Alisdair McDiarmid authored
      f019fb11
    • Łukasz Sierant's avatar
    • Billy Keyes's avatar
      command/format: improve list nested attribute rendering (#29827) · 52ca3027
      Billy Keyes authored
      * command/format: fix list nested attr diff rendering
      
      Previously, diffs only rendered correctly if all changed elements
      appeared before all unchanged elements. Once an unchanged element was
      found, all remaining elements were skipped. This usually led to the
      output being an empty list with a weird amount of space between the
      brackets.
      
      * command/format: improve list nested attr rendering
      
      This makes several changes that make diffs for lists clearer and more
      consistent:
      
        * Separate items with brackets instead of only new lines. This better
          matches the input syntax and avoids confusion from the first and
          last brackets implying there is a single item.
        * Render an action symbol for each element of the list
        * Use the correct action symbol for new and deleted items
        * Fix the alignment of opening and closing brackets
      
      I also refactored the structure so it is similar to the set and map
      cases to minimize duplication of the new prints.
      
      * Fix re-use of blockBodyDiffResult struct
      52ca3027
  3. 01 Nov, 2021 21 commits