{"action":"created","issue":{"url":"https://api.github.com/repos/TerraHubCorp/terrahub/issues/295","repository_url":"https://api.github.com/repos/TerraHubCorp/terrahub","labels_url":"https://api.github.com/repos/TerraHubCorp/terrahub/issues/295/labels{/name}","comments_url":"https://api.github.com/repos/TerraHubCorp/terrahub/issues/295/comments","events_url":"https://api.github.com/repos/TerraHubCorp/terrahub/issues/295/events","html_url":"https://github.com/TerraHubCorp/terrahub/issues/295","id":358344107,"node_id":"MDU6SXNzdWUzNTgzNDQxMDc=","number":295,"title":"Avoid running `terraform workspace select [env]` during `terrahub run` if already selected","user":{"login":"eistrati","id":27417,"node_id":"MDQ6VXNlcjI3NDE3","avatar_url":"https://avatars3.githubusercontent.com/u/27417?v=4","gravatar_id":"","url":"https://api.github.com/users/eistrati","html_url":"https://github.com/eistrati","followers_url":"https://api.github.com/users/eistrati/followers","following_url":"https://api.github.com/users/eistrati/following{/other_user}","gists_url":"https://api.github.com/users/eistrati/gists{/gist_id}","starred_url":"https://api.github.com/users/eistrati/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eistrati/subscriptions","organizations_url":"https://api.github.com/users/eistrati/orgs","repos_url":"https://api.github.com/users/eistrati/repos","events_url":"https://api.github.com/users/eistrati/events{/privacy}","received_events_url":"https://api.github.com/users/eistrati/received_events","type":"User","site_admin":false},"labels":[{"id":901836633,"node_id":"MDU6TGFiZWw5MDE4MzY2MzM=","url":"https://api.github.com/repos/TerraHubCorp/terrahub/labels/enhancement","name":"enhancement","color":"a2eeef","default":true}],"state":"open","locked":false,"assignee":{"login":"Leichtwind","id":35968905,"node_id":"MDQ6VXNlcjM1OTY4OTA1","avatar_url":"https://avatars0.githubusercontent.com/u/35968905?v=4","gravatar_id":"","url":"https://api.github.com/users/Leichtwind","html_url":"https://github.com/Leichtwind","followers_url":"https://api.github.com/users/Leichtwind/followers","following_url":"https://api.github.com/users/Leichtwind/following{/other_user}","gists_url":"https://api.github.com/users/Leichtwind/gists{/gist_id}","starred_url":"https://api.github.com/users/Leichtwind/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Leichtwind/subscriptions","organizations_url":"https://api.github.com/users/Leichtwind/orgs","repos_url":"https://api.github.com/users/Leichtwind/repos","events_url":"https://api.github.com/users/Leichtwind/events{/privacy}","received_events_url":"https://api.github.com/users/Leichtwind/received_events","type":"User","site_admin":false},"assignees":[{"login":"Leichtwind","id":35968905,"node_id":"MDQ6VXNlcjM1OTY4OTA1","avatar_url":"https://avatars0.githubusercontent.com/u/35968905?v=4","gravatar_id":"","url":"https://api.github.com/users/Leichtwind","html_url":"https://github.com/Leichtwind","followers_url":"https://api.github.com/users/Leichtwind/followers","following_url":"https://api.github.com/users/Leichtwind/following{/other_user}","gists_url":"https://api.github.com/users/Leichtwind/gists{/gist_id}","starred_url":"https://api.github.com/users/Leichtwind/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Leichtwind/subscriptions","organizations_url":"https://api.github.com/users/Leichtwind/orgs","repos_url":"https://api.github.com/users/Leichtwind/repos","events_url":"https://api.github.com/users/Leichtwind/events{/privacy}","received_events_url":"https://api.github.com/users/Leichtwind/received_events","type":"User","site_admin":false}],"milestone":null,"comments":0,"created_at":"2018-09-09T02:40:17Z","updated_at":"2018-09-14T12:33:03Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"## Describe the Feature\r\n<!-- A clear and concise description of what the bug is -->\r\n<!-- note: for support questions, please use stackoverflow -->\r\nAvoid running `terraform workspace select [env]` during `terrahub run` if already selected\r\n\r\n## Expected Behavior\r\n<!-- A clear and concise description of what you expected to happen -->\r\nAs part of optimization and speed up effort, please update `terrahub run` to avoid running `terraform workspace select [env]` if terraform workspace `[env]` is already selected\r\n"},"comment":{"url":"https://api.github.com/repos/TerraHubCorp/terrahub/issues/comments/421344362","html_url":"https://github.com/TerraHubCorp/terrahub/issues/295#issuecomment-421344362","issue_url":"https://api.github.com/repos/TerraHubCorp/terrahub/issues/295","id":421344362,"node_id":"MDEyOklzc3VlQ29tbWVudDQyMTM0NDM2Mg==","user":{"login":"KanoniPan","id":35734669,"node_id":"MDQ6VXNlcjM1NzM0NjY5","avatar_url":"https://avatars2.githubusercontent.com/u/35734669?v=4","gravatar_id":"","url":"https://api.github.com/users/KanoniPan","html_url":"https://github.com/KanoniPan","followers_url":"https://api.github.com/users/KanoniPan/followers","following_url":"https://api.github.com/users/KanoniPan/following{/other_user}","gists_url":"https://api.github.com/users/KanoniPan/gists{/gist_id}","starred_url":"https://api.github.com/users/KanoniPan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KanoniPan/subscriptions","organizations_url":"https://api.github.com/users/KanoniPan/orgs","repos_url":"https://api.github.com/users/KanoniPan/repos","events_url":"https://api.github.com/users/KanoniPan/events{/privacy}","received_events_url":"https://api.github.com/users/KanoniPan/received_events","type":"User","site_admin":false},"created_at":"2018-09-14T12:33:03Z","updated_at":"2018-09-14T12:33:03Z","author_association":"CONTRIBUTOR","body":"Test Passed:\r\nNext steps were performed:\r\n- `thub run`\r\n<img width=\"1126\" alt=\"2018-09-14 15 27 30\" src=\"https://user-images.githubusercontent.com/35734669/45550371-509b5480-b833-11e8-8f4d-8c8892e8800a.png\">\r\n\r\nAs you can see on the screenshot `terraform select` action wasn't performed, because `default` workspace was already selected\r\n\r\n- `thub workspace -e dev`\r\n- `thub run -e dev`\r\n<img width=\"1119\" alt=\"2018-09-14 15 28 53\" src=\"https://user-images.githubusercontent.com/35734669/45550266-0ade8c00-b833-11e8-9793-be9f1afccf05.png\">\r\n\r\nAs you can see on the screenshot `terraform select` action wasn't performed, because `dev` workspace was already selected"}}
{"actor":{"display_login":"KanoniPan"}}