{"action":"created","issue":{"url":"https://api.github.com/repos/hashicorp/terraform/issues/1670","labels_url":"https://api.github.com/repos/hashicorp/terraform/issues/1670/labels{/name}","comments_url":"https://api.github.com/repos/hashicorp/terraform/issues/1670/comments","events_url":"https://api.github.com/repos/hashicorp/terraform/issues/1670/events","html_url":"https://github.com/hashicorp/terraform/issues/1670","id":70770657,"number":1670,"title":"terraform graph doesn't expand at all in 0.4.2 and master","user":{"login":"stefancocora","id":281241,"avatar_url":"https://avatars.githubusercontent.com/u/281241?v=3","gravatar_id":"","url":"https://api.github.com/users/stefancocora","html_url":"https://github.com/stefancocora","followers_url":"https://api.github.com/users/stefancocora/followers","following_url":"https://api.github.com/users/stefancocora/following{/other_user}","gists_url":"https://api.github.com/users/stefancocora/gists{/gist_id}","starred_url":"https://api.github.com/users/stefancocora/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stefancocora/subscriptions","organizations_url":"https://api.github.com/users/stefancocora/orgs","repos_url":"https://api.github.com/users/stefancocora/repos","events_url":"https://api.github.com/users/stefancocora/events{/privacy}","received_events_url":"https://api.github.com/users/stefancocora/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/hashicorp/terraform/labels/bug","name":"bug","color":"f7c6c7"},{"url":"https://api.github.com/repos/hashicorp/terraform/labels/core","name":"core","color":"cccccc"}],"state":"closed","locked":false,"assignee":{"login":"phinze","id":37534,"avatar_url":"https://avatars.githubusercontent.com/u/37534?v=3","gravatar_id":"","url":"https://api.github.com/users/phinze","html_url":"https://github.com/phinze","followers_url":"https://api.github.com/users/phinze/followers","following_url":"https://api.github.com/users/phinze/following{/other_user}","gists_url":"https://api.github.com/users/phinze/gists{/gist_id}","starred_url":"https://api.github.com/users/phinze/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/phinze/subscriptions","organizations_url":"https://api.github.com/users/phinze/orgs","repos_url":"https://api.github.com/users/phinze/repos","events_url":"https://api.github.com/users/phinze/events{/privacy}","received_events_url":"https://api.github.com/users/phinze/received_events","type":"User","site_admin":false},"milestone":null,"comments":4,"created_at":"2015-04-24T19:11:11Z","updated_at":"2015-04-30T21:14:25Z","closed_at":"2015-04-30T20:53:54Z","body":"Like the title says terraform\r\n```bash\r\nterraform version\r\nTerraform v0.4.2\r\n```\r\nand master\r\n```bash\r\nterraform version\r\nTerraform v0.5.0-dev (8c3fba6d24a89aaa79fe7079726a7f3202d6f08e)\r\n```\r\ndon't expand the terraform graph when `-module-depth=-1` is set, see here\r\nhttps://github.com/stefancocora/tf_sg_deps_bug/blob/master/graph.png\r\n\r\nterraform 0.3.7 expands the graph properly, see here\r\nhttps://github.com/stefancocora/tf_sg_deps_bug/blob/master/graph-0.3.7.png"},"comment":{"url":"https://api.github.com/repos/hashicorp/terraform/issues/comments/97969133","html_url":"https://github.com/hashicorp/terraform/issues/1670#issuecomment-97969133","issue_url":"https://api.github.com/repos/hashicorp/terraform/issues/1670","id":97969133,"user":{"login":"stefancocora","id":281241,"avatar_url":"https://avatars.githubusercontent.com/u/281241?v=3","gravatar_id":"","url":"https://api.github.com/users/stefancocora","html_url":"https://github.com/stefancocora","followers_url":"https://api.github.com/users/stefancocora/followers","following_url":"https://api.github.com/users/stefancocora/following{/other_user}","gists_url":"https://api.github.com/users/stefancocora/gists{/gist_id}","starred_url":"https://api.github.com/users/stefancocora/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stefancocora/subscriptions","organizations_url":"https://api.github.com/users/stefancocora/orgs","repos_url":"https://api.github.com/users/stefancocora/repos","events_url":"https://api.github.com/users/stefancocora/events{/privacy}","received_events_url":"https://api.github.com/users/stefancocora/received_events","type":"User","site_admin":false},"created_at":"2015-04-30T21:14:25Z","updated_at":"2015-04-30T21:14:25Z","body":"Fast feedback loop coming :)\r\n\r\nUnless I'm doing something amazingly wrong it looks like #1661 doesn't fix this bug:\r\n\r\nI've just rebuilt TF after I've seen your github post:\r\n```bash\r\nterraform version\r\nTerraform v0.5.0-dev (1061bbfbfe81da8495694b92d8ef2d5045d02fc5)\r\n```\r\n\r\n**Generating the graph with TF master** gives me still the unexpanded graph\r\n```bash\r\nterraform version && bash -x ./tf.sh graph\r\nTerraform v0.5.0-dev (1061bbfbfe81da8495694b92d8ef2d5045d02fc5)\r\n\r\n+ COMMAND=graph\r\n+ PLAN=plan.tf\r\n+ GRAPH=graph.png\r\n+ [[ graph = \\a\\p\\p\\l\\y ]]\r\n+ [[ graph = \\p\\l\\a\\n ]]\r\n+ [[ graph = \\p\\l\\a\\n\\d\\e\\s\\t\\r\\o\\y ]]\r\n+ [[ graph = \\d\\e\\s\\t\\r\\o\\y ]]\r\n+ [[ graph = \\d\\e\\s\\t\\r\\o\\y\\n\\o\\w ]]\r\n+ [[ graph = \\u\\p\\d\\a\\t\\e ]]\r\n+ [[ graph = \\g\\r\\a\\p\\h ]]\r\n+ echo 'outputting infrastructure graph to graph.png'\r\noutputting infrastructure graph to graph.png\r\n+ terraform graph -module-depth=-1 plan.tf\r\n+ dot -Tpng\r\n```\r\n![graph](https://cloud.githubusercontent.com/assets/281241/7422596/0c777f32-ef86-11e4-9a0f-d03011d20424.png)\r\n\r\n\r\nGenerating the graph with `0.3.7` gives me the expanded graph\r\n```bash\r\ndocker run -v $PWD:/data  uzyexe/terraform:v0.3.7 graph -module-depth=-1 plan.tf | dot -Tpng > ./graph-0.3.7.png\r\n```\r\n\r\n![graph-0 3 7](https://cloud.githubusercontent.com/assets/281241/7422619/2cf6b3ae-ef86-11e4-8f3e-5c54d3d9fb01.png)\r\n\r\n"}}