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. 09 Oct, 2018 9 commits
    • Kristin Laemmert's avatar
      fix go module related merge conflict · 827c5f6c
      Kristin Laemmert authored
      827c5f6c
    • Kristin Laemmert's avatar
      cli: format/state_test.go · c178058f
      Kristin Laemmert authored
      Added a very simple test with state and schema.
      TODO: if tests are added we should test using golden files (and example
      state files, instead of strings). This seemed unnecessary with the
      simple test cases.
      c178058f
    • Kristin Laemmert's avatar
      cli: format/state refactor to use blockBodyDiffPrinter · 7f951d5f
      Kristin Laemmert authored
      Use functions from format/diff to print values
      7f951d5f
    • Kristin Laemmert's avatar
      cli: format/state refactor for new state format · 10e58dfa
      Kristin Laemmert authored
      format/state now requires provider schemas to properly format output
      state. command/show has been modified to pass a context to format.State.
      10e58dfa
    • Martin Atkins's avatar
      command: Populate backend configuration in plan files · 764a7d61
      Martin Atkins authored
      In previous work we didn't quite connect these dots. The connection here
      is sub-awesome since the existing interfaces here had some unfortunate
      assumptions that we'd like to move away from (like the idea of a "nil
      backend" implying the local backend) but we're accepting this for now to
      avoid another big round of refactoring.
      
      The main implication of this is that we will now always include a backend
      configuration in the plan, though it might just be a placeholder config
      for the local backend in the remaining cases where that's still implicitly
      set. Later we will change this so that there is no implicit local backend
      at all (terraform init is always required, _it_ will deal with setting
      implicitly setting the local backend when appropriate), which will allow
      us to rework this to be more straightforward and less "spooky".
      764a7d61
    • Martin Atkins's avatar
      command: Do CLI init of backend loaded from plan · 4c988cea
      Martin Atkins authored
      If we don't do this, we can't produce any output when applying a saved
      plan file.
      
      Here we also introduce a check to the local backend's ReportResult
      function so that it won't panic if CLI init is skipped, although that
      will no longer happen in the apply-from-file case due to the change
      described in the previous paragraph.
      4c988cea
    • Martin Atkins's avatar
      backend/local: Require caller to set PlanOutBackend with PlanOutPath · 1cd5ec22
      Martin Atkins authored
      We can't generate a valid plan file without a backend configuration to
      write into it, but it's the responsibility of the caller (the command
      package) to manage the backend configuration mechanism, so we require it
      to tell us what to write here.
      
      This feels a little strange because the backend in principle knows its
      own config, but in practice the backend only knows the _processed_ version
      of the config, not the raw configuration value that was used to configure
      it.
      1cd5ec22
    • Martin Atkins's avatar
      go mod tidy · cc888fea
      Martin Atkins authored
      cc888fea
    • Martin Atkins's avatar
  2. 08 Oct, 2018 12 commits
  3. 06 Oct, 2018 3 commits
    • James Bardin's avatar
      missing diagnostics in pugin protocol · 131f1c3e
      James Bardin authored
      Some call diagnostics were being missed
      131f1c3e
    • James Bardin's avatar
      initialize empty diff in apply · 359075f2
      James Bardin authored
      While the schema Diff fucntion returns a nil diff when creating an empty
      (except for id) resource, the Apply function expects the diff to be
      initialized and ampty.
      359075f2
    • James Bardin's avatar
      a plan with no diff should return proposed state · 506f561c
      James Bardin authored
      PlanResourceChange isn't returning the diff, but rather it is returning
      the destired state. If the propsed state results in a nil diff, then,
      the propsed state is what should be returned.
      
      Make sure Meta fields are not nil, as the schema package expects those
      to be initialised.
      506f561c
  4. 03 Oct, 2018 6 commits
  5. 02 Oct, 2018 10 commits