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. 13 Mar, 2019 3 commits
  2. 12 Mar, 2019 15 commits
  3. 11 Mar, 2019 12 commits
    • Kristin Laemmert's avatar
      internal/initwd: identify possible relative module sources · bf04503f
      Kristin Laemmert authored
      Identify module sources that look like relative paths ("child" instead
      of "./child", for example) and surface a helpful error.
      
      Previously, such module sources would be passed to go-getter, which
      would fail because it was expecting an absolute, or properly relative,
      path. This commit moves the check for improper relative paths sooner so
      a user-friendly error can be displayed.
      bf04503f
    • James Bardin's avatar
      Merge pull request #20641 from hashicorp/jbardin/null-computed-blocks · 42073633
      James Bardin authored
      stop removing empty flatmap containers
      42073633
    • Rupesh Reddy Tumu's avatar
    • James Bardin's avatar
      stop removing empty flatmap containers · 9d4bb6ec
      James Bardin authored
      As we've improved the cty.Value normalization, we need to remove
      normalization procedures from the flatmap handling. Keeping the empty
      containers in the flatmap will prevent unexpected nils from being added
      to some schema configurations
      9d4bb6ec
    • Martin Atkins's avatar
      website: "for" expression examples to use canonical formatting · 36bb9b46
      Martin Atkins authored
      The "terraform fmt" command produces a different canonical form than we
      were showing in our examples here. Our examples should always reflect the
      conventions applied by "terraform fmt" to avoid confusion.
      
      (This particular decision is a pragmatic one because the formatter design
      needs to use the same rules for the colon in the ? : conditional operator
      as for the colon in "for" expressions.)
      36bb9b46
    • Martin Atkins's avatar
      website: References to Resource Attributes · 0a9959cb
      Martin Atkins authored
      Since references to attributes of resources are by far the most common
      reference type, and the mapping of resource type config to the attributes
      is not always obvious, here we give some real examples of patterns for
      accessing different configuration constructs within resource blocks along
      with the resource type's exported attributes.
      
      Since we don't have any real examples of labelled nested blocks yet (the
      current SDK doesn't support them) I've included a hypothetical example for
      now just to establish the patterns around them in preparation for
      beginning to introduce them as we roll out this feature in the SDK.
      0a9959cb
    • David Chwalisz's avatar
      fix `Publishing Modules` link of website documentation. · ddb7e0ab
      David Chwalisz authored
      Currently links to [Creating Modules](https://www.terraform.io/docs/modules/create.html) page.
      Should link to [Publishing Modules](https://www.terraform.io/docs/modules/publish.html) page.
      
      fixes #20636
      ddb7e0ab
    • Martin Atkins's avatar
      command/format: Diffs for NestingMap block types · 2d41c100
      Martin Atkins authored
      Our initial prototype of new-style diff rendering excluded this because
      the old SDK has no support for this construct. However, we want to be able
      to introduce this construct in the new SDK without breaking compatibility
      with existing versions of Terraform Core, so we need to implement it now
      so it's ready to be used once the SDK implements it.
      
      The key associated with each block allows us to properly correlate the
      items to recognize the difference between an in-place update of an
      existing block and the addition/deletion of a block.
      2d41c100
    • Martin Atkins's avatar
      command/format: Support list/map blocks with dynamic-typed attrs · dd1fa322
      Martin Atkins authored
      Our null-to-empty normalization was previously assuming these would always
      be collection types, but that isn't true when a block contains something
      dynamic since we must then use tuple or object types instead to properly
      represent all of the individual element types.
      dd1fa322
    • Martin Atkins's avatar
      command/format: test for diff rendering with dynamic-typed subattrs · 69772b11
      Martin Atkins authored
      We use cty a little differently when a nested list block contains a
      dynamically-typed attribute: it appears as a tuple value instead of a
      list value so that we can retain the individual types of each element.
      
      Here we introduce a test for that case, but doing so required also making
      the runTestCases function handle types in a stricter way so that it will
      produce planned values that match how Terraform Core would do it,
      including the necessary late-bound type information for the
      dynamically-typed attribute.
      69772b11
    • Martin Atkins's avatar
      plans/objchange: Don't panic when dynamic-typed attrs are present · c5aa5c68
      Martin Atkins authored
      When dynamically-typed attributes are in the schema, we use different
      conventions for representing nested blocks containing them (using tuples
      and objects instead of lists and maps).
      
      The normalization code here doesn't deal with those because the legacy
      SDK never generates them, but we must still pass them through properly or
      else other SDKs will be blocked from using dynamic attributes.
      
      Previously this function would panic in that situation. Now it will just
      pass through nested blocks containing dynamic attribute values entirely
      as-is, with no normalization whatsoever. That's okay, because the scope
      of this function is only to normalize inconsistencies that the legacy
      SDK is known to produce, and the legacy SDK never produces dynamic-typed
      attributes.
      c5aa5c68
    • Kristin Laemmert's avatar
      remove indentation from json output of `show` and `providers schema` (#20623) · 30672fae
      Kristin Laemmert authored
      * command/providers schema: correct help text
      
      * command/show: remove indentation from json output
      
      * command/providers schema: remove indentation from json output
      30672fae
  4. 09 Mar, 2019 1 commit
  5. 08 Mar, 2019 9 commits