scottwinkler / terraform-provider-shell

Terraform provider for executing shell commands and saving output to state file
Mozilla Public License 2.0
279 stars 60 forks source link

Output .values are converted to string. This is not desired. #95

Open ibacalu opened 3 years ago

ibacalu commented 3 years ago

Hi!

Example, following output:

{
  "application": {
    "api": {
      "arg1": null,
      "arg2": [],
      "arg3": [
        {
          "id": "305ed81c-35c0-47dc-900a-3abe368127d3",
          "sub3": true
        }
      ],
      "preAuthorizedApplications": []
    }
  }
}

gets converted in the state to this:

{
  "output": {
    "application": "{\"api\":{\"arg1\":null,\"arg2\":[],\"arg3\":[{\"id\":\"84cfe009-7f2b-4e13-9f99-62b60aabf7ac\",\"sub3\":true}],\"preAuthorizedApplications\":[]}"
  }
}

Is there a way to disable this conversion?