{"action":"created","comment":{"url":"https://api.github.com/repos/rackspace/gophercloud/pulls/comments/40021812","id":40021812,"diff_hunk":"@@ -0,0 +1,145 @@\n+package stacks\n+\n+import (\n+\t\"encoding/json\"\n+\t\"errors\"\n+\t\"fmt\"\n+\t\"io/ioutil\"\n+\t\"net/http\"\n+\t\"path/filepath\"\n+\t\"reflect\"\n+\t\"strings\"\n+\n+\t\"github.com/rackspace/gophercloud\"\n+\t\"gopkg.in/yaml.v2\"\n+)\n+\n+type Client interface {\n+\tGet(string) (*http.Response, error)\n+}\n+\n+type TE struct {\n+\t// Bin stores the contents of the template or environment.\n+\tBin []byte\n+\t// URL stores the URL of the template. This is allowed to be a 'file://'\n+\t// for local files.\n+\tURL string\n+\t// Parsed contains a parsed version of Bin. Since there are 2 different\n+\t// fields referring to the same value, you must be careful when accessing\n+\t// this filed.\n+\tParsed map[string]interface{}\n+\t// Files contains a mapping between the urls in templates to their contents.\n+\tFiles map[string]string\n+\t// fileMaps is a map used internally when determining Files.\n+\tfileMaps map[string]string\n+\t// baseURL represents the location of the template or environment file.\n+\tbaseURL string\n+\t// client is an interface which allows TE to fetch contents from URLS\n+\tclient Client\n+}\n+\n+func (t *TE) Fetch() error {","path":"openstack/orchestration/v1/stacks/utils.go","position":null,"original_position":41,"commit_id":"f1daafe5364ca18c342f7767b83e334d419f59ae","original_commit_id":"4943f428103b54113f6b1775e201284b0060dd18","user":{"login":"pratikmallya","id":904679,"avatar_url":"https://avatars.githubusercontent.com/u/904679?v=3","gravatar_id":"","url":"https://api.github.com/users/pratikmallya","html_url":"https://github.com/pratikmallya","followers_url":"https://api.github.com/users/pratikmallya/followers","following_url":"https://api.github.com/users/pratikmallya/following{/other_user}","gists_url":"https://api.github.com/users/pratikmallya/gists{/gist_id}","starred_url":"https://api.github.com/users/pratikmallya/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pratikmallya/subscriptions","organizations_url":"https://api.github.com/users/pratikmallya/orgs","repos_url":"https://api.github.com/users/pratikmallya/repos","events_url":"https://api.github.com/users/pratikmallya/events{/privacy}","received_events_url":"https://api.github.com/users/pratikmallya/received_events","type":"User","site_admin":false},"body":"Done.","created_at":"2015-09-21T20:31:56Z","updated_at":"2015-09-21T20:31:56Z","html_url":"https://github.com/rackspace/gophercloud/pull/486#discussion_r40021812","pull_request_url":"https://api.github.com/repos/rackspace/gophercloud/pulls/486","_links":{"self":{"href":"https://api.github.com/repos/rackspace/gophercloud/pulls/comments/40021812"},"html":{"href":"https://github.com/rackspace/gophercloud/pull/486#discussion_r40021812"},"pull_request":{"href":"https://api.github.com/repos/rackspace/gophercloud/pulls/486"}}},"pull_request":{"url":"https://api.github.com/repos/rackspace/gophercloud/pulls/486","id":44969620,"html_url":"https://github.com/rackspace/gophercloud/pull/486","diff_url":"https://github.com/rackspace/gophercloud/pull/486.diff","patch_url":"https://github.com/rackspace/gophercloud/pull/486.patch","issue_url":"https://api.github.com/repos/rackspace/gophercloud/issues/486","number":486,"state":"open","locked":false,"title":"[rfr]Enable template environment parsing","user":{"login":"pratikmallya","id":904679,"avatar_url":"https://avatars.githubusercontent.com/u/904679?v=3","gravatar_id":"","url":"https://api.github.com/users/pratikmallya","html_url":"https://github.com/pratikmallya","followers_url":"https://api.github.com/users/pratikmallya/followers","following_url":"https://api.github.com/users/pratikmallya/following{/other_user}","gists_url":"https://api.github.com/users/pratikmallya/gists{/gist_id}","starred_url":"https://api.github.com/users/pratikmallya/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pratikmallya/subscriptions","organizations_url":"https://api.github.com/users/pratikmallya/orgs","repos_url":"https://api.github.com/users/pratikmallya/repos","events_url":"https://api.github.com/users/pratikmallya/events{/privacy}","received_events_url":"https://api.github.com/users/pratikmallya/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-09-14T19:22:36Z","updated_at":"2015-09-21T20:31:56Z","closed_at":null,"merged_at":null,"merge_commit_sha":"4d30a597c788069d802e860c5300f4e2e924640c","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/rackspace/gophercloud/pulls/486/commits","review_comments_url":"https://api.github.com/repos/rackspace/gophercloud/pulls/486/comments","review_comment_url":"https://api.github.com/repos/rackspace/gophercloud/pulls/comments{/number}","comments_url":"https://api.github.com/repos/rackspace/gophercloud/issues/486/comments","statuses_url":"https://api.github.com/repos/rackspace/gophercloud/statuses/f1daafe5364ca18c342f7767b83e334d419f59ae","head":{"label":"pratikmallya:enable_template_environment_parsing","ref":"enable_template_environment_parsing","sha":"f1daafe5364ca18c342f7767b83e334d419f59ae","user":{"login":"pratikmallya","id":904679,"avatar_url":"https://avatars.githubusercontent.com/u/904679?v=3","gravatar_id":"","url":"https://api.github.com/users/pratikmallya","html_url":"https://github.com/pratikmallya","followers_url":"https://api.github.com/users/pratikmallya/followers","following_url":"https://api.github.com/users/pratikmallya/following{/other_user}","gists_url":"https://api.github.com/users/pratikmallya/gists{/gist_id}","starred_url":"https://api.github.com/users/pratikmallya/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pratikmallya/subscriptions","organizations_url":"https://api.github.com/users/pratikmallya/orgs","repos_url":"https://api.github.com/users/pratikmallya/repos","events_url":"https://api.github.com/users/pratikmallya/events{/privacy}","received_events_url":"https://api.github.com/users/pratikmallya/received_events","type":"User","site_admin":false},"repo":{"id":41055354,"name":"gophercloud","full_name":"pratikmallya/gophercloud","owner":{"login":"pratikmallya","id":904679,"avatar_url":"https://avatars.githubusercontent.com/u/904679?v=3","gravatar_id":"","url":"https://api.github.com/users/pratikmallya","html_url":"https://github.com/pratikmallya","followers_url":"https://api.github.com/users/pratikmallya/followers","following_url":"https://api.github.com/users/pratikmallya/following{/other_user}","gists_url":"https://api.github.com/users/pratikmallya/gists{/gist_id}","starred_url":"https://api.github.com/users/pratikmallya/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pratikmallya/subscriptions","organizations_url":"https://api.github.com/users/pratikmallya/orgs","repos_url":"https://api.github.com/users/pratikmallya/repos","events_url":"https://api.github.com/users/pratikmallya/events{/privacy}","received_events_url":"https://api.github.com/users/pratikmallya/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/pratikmallya/gophercloud","description":"The Go SDK for Openstack.","fork":true,"url":"https://api.github.com/repos/pratikmallya/gophercloud","forks_url":"https://api.github.com/repos/pratikmallya/gophercloud/forks","keys_url":"https://api.github.com/repos/pratikmallya/gophercloud/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pratikmallya/gophercloud/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pratikmallya/gophercloud/teams","hooks_url":"https://api.github.com/repos/pratikmallya/gophercloud/hooks","issue_events_url":"https://api.github.com/repos/pratikmallya/gophercloud/issues/events{/number}","events_url":"https://api.github.com/repos/pratikmallya/gophercloud/events","assignees_url":"https://api.github.com/repos/pratikmallya/gophercloud/assignees{/user}","branches_url":"https://api.github.com/repos/pratikmallya/gophercloud/branches{/branch}","tags_url":"https://api.github.com/repos/pratikmallya/gophercloud/tags","blobs_url":"https://api.github.com/repos/pratikmallya/gophercloud/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pratikmallya/gophercloud/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pratikmallya/gophercloud/git/refs{/sha}","trees_url":"https://api.github.com/repos/pratikmallya/gophercloud/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pratikmallya/gophercloud/statuses/{sha}","languages_url":"https://api.github.com/repos/pratikmallya/gophercloud/languages","stargazers_url":"https://api.github.com/repos/pratikmallya/gophercloud/stargazers","contributors_url":"https://api.github.com/repos/pratikmallya/gophercloud/contributors","subscribers_url":"https://api.github.com/repos/pratikmallya/gophercloud/subscribers","subscription_url":"https://api.github.com/repos/pratikmallya/gophercloud/subscription","commits_url":"https://api.github.com/repos/pratikmallya/gophercloud/commits{/sha}","git_commits_url":"https://api.github.com/repos/pratikmallya/gophercloud/git/commits{/sha}","comments_url":"https://api.github.com/repos/pratikmallya/gophercloud/comments{/number}","issue_comment_url":"https://api.github.com/repos/pratikmallya/gophercloud/issues/comments{/number}","contents_url":"https://api.github.com/repos/pratikmallya/gophercloud/contents/{+path}","compare_url":"https://api.github.com/repos/pratikmallya/gophercloud/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pratikmallya/gophercloud/merges","archive_url":"https://api.github.com/repos/pratikmallya/gophercloud/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pratikmallya/gophercloud/downloads","issues_url":"https://api.github.com/repos/pratikmallya/gophercloud/issues{/number}","pulls_url":"https://api.github.com/repos/pratikmallya/gophercloud/pulls{/number}","milestones_url":"https://api.github.com/repos/pratikmallya/gophercloud/milestones{/number}","notifications_url":"https://api.github.com/repos/pratikmallya/gophercloud/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pratikmallya/gophercloud/labels{/name}","releases_url":"https://api.github.com/repos/pratikmallya/gophercloud/releases{/id}","created_at":"2015-08-19T19:29:39Z","updated_at":"2015-08-19T19:29:41Z","pushed_at":"2015-09-21T20:31:27Z","git_url":"git://github.com/pratikmallya/gophercloud.git","ssh_url":"git@github.com:pratikmallya/gophercloud.git","clone_url":"https://github.com/pratikmallya/gophercloud.git","svn_url":"https://github.com/pratikmallya/gophercloud","homepage":"gophercloud.io","size":9353,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"rackspace:master","ref":"master","sha":"f92863476c034f851073599c09d90cd61ee95b3d","user":{"login":"rackspace","id":3949923,"avatar_url":"https://avatars.githubusercontent.com/u/3949923?v=3","gravatar_id":"","url":"https://api.github.com/users/rackspace","html_url":"https://github.com/rackspace","followers_url":"https://api.github.com/users/rackspace/followers","following_url":"https://api.github.com/users/rackspace/following{/other_user}","gists_url":"https://api.github.com/users/rackspace/gists{/gist_id}","starred_url":"https://api.github.com/users/rackspace/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rackspace/subscriptions","organizations_url":"https://api.github.com/users/rackspace/orgs","repos_url":"https://api.github.com/users/rackspace/repos","events_url":"https://api.github.com/users/rackspace/events{/privacy}","received_events_url":"https://api.github.com/users/rackspace/received_events","type":"Organization","site_admin":false},"repo":{"id":10826219,"name":"gophercloud","full_name":"rackspace/gophercloud","owner":{"login":"rackspace","id":3949923,"avatar_url":"https://avatars.githubusercontent.com/u/3949923?v=3","gravatar_id":"","url":"https://api.github.com/users/rackspace","html_url":"https://github.com/rackspace","followers_url":"https://api.github.com/users/rackspace/followers","following_url":"https://api.github.com/users/rackspace/following{/other_user}","gists_url":"https://api.github.com/users/rackspace/gists{/gist_id}","starred_url":"https://api.github.com/users/rackspace/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rackspace/subscriptions","organizations_url":"https://api.github.com/users/rackspace/orgs","repos_url":"https://api.github.com/users/rackspace/repos","events_url":"https://api.github.com/users/rackspace/events{/privacy}","received_events_url":"https://api.github.com/users/rackspace/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/rackspace/gophercloud","description":"The Go SDK for Openstack.","fork":false,"url":"https://api.github.com/repos/rackspace/gophercloud","forks_url":"https://api.github.com/repos/rackspace/gophercloud/forks","keys_url":"https://api.github.com/repos/rackspace/gophercloud/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rackspace/gophercloud/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rackspace/gophercloud/teams","hooks_url":"https://api.github.com/repos/rackspace/gophercloud/hooks","issue_events_url":"https://api.github.com/repos/rackspace/gophercloud/issues/events{/number}","events_url":"https://api.github.com/repos/rackspace/gophercloud/events","assignees_url":"https://api.github.com/repos/rackspace/gophercloud/assignees{/user}","branches_url":"https://api.github.com/repos/rackspace/gophercloud/branches{/branch}","tags_url":"https://api.github.com/repos/rackspace/gophercloud/tags","blobs_url":"https://api.github.com/repos/rackspace/gophercloud/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rackspace/gophercloud/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rackspace/gophercloud/git/refs{/sha}","trees_url":"https://api.github.com/repos/rackspace/gophercloud/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rackspace/gophercloud/statuses/{sha}","languages_url":"https://api.github.com/repos/rackspace/gophercloud/languages","stargazers_url":"https://api.github.com/repos/rackspace/gophercloud/stargazers","contributors_url":"https://api.github.com/repos/rackspace/gophercloud/contributors","subscribers_url":"https://api.github.com/repos/rackspace/gophercloud/subscribers","subscription_url":"https://api.github.com/repos/rackspace/gophercloud/subscription","commits_url":"https://api.github.com/repos/rackspace/gophercloud/commits{/sha}","git_commits_url":"https://api.github.com/repos/rackspace/gophercloud/git/commits{/sha}","comments_url":"https://api.github.com/repos/rackspace/gophercloud/comments{/number}","issue_comment_url":"https://api.github.com/repos/rackspace/gophercloud/issues/comments{/number}","contents_url":"https://api.github.com/repos/rackspace/gophercloud/contents/{+path}","compare_url":"https://api.github.com/repos/rackspace/gophercloud/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rackspace/gophercloud/merges","archive_url":"https://api.github.com/repos/rackspace/gophercloud/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rackspace/gophercloud/downloads","issues_url":"https://api.github.com/repos/rackspace/gophercloud/issues{/number}","pulls_url":"https://api.github.com/repos/rackspace/gophercloud/pulls{/number}","milestones_url":"https://api.github.com/repos/rackspace/gophercloud/milestones{/number}","notifications_url":"https://api.github.com/repos/rackspace/gophercloud/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rackspace/gophercloud/labels{/name}","releases_url":"https://api.github.com/repos/rackspace/gophercloud/releases{/id}","created_at":"2013-06-20T18:10:46Z","updated_at":"2015-09-15T15:55:50Z","pushed_at":"2015-09-21T20:31:28Z","git_url":"git://github.com/rackspace/gophercloud.git","ssh_url":"git@github.com:rackspace/gophercloud.git","clone_url":"https://github.com/rackspace/gophercloud.git","svn_url":"https://github.com/rackspace/gophercloud","homepage":"gophercloud.io","size":13188,"stargazers_count":301,"watchers_count":301,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":86,"mirror_url":null,"open_issues_count":39,"forks":86,"open_issues":39,"watchers":301,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/rackspace/gophercloud/pulls/486"},"html":{"href":"https://github.com/rackspace/gophercloud/pull/486"},"issue":{"href":"https://api.github.com/repos/rackspace/gophercloud/issues/486"},"comments":{"href":"https://api.github.com/repos/rackspace/gophercloud/issues/486/comments"},"review_comments":{"href":"https://api.github.com/repos/rackspace/gophercloud/pulls/486/comments"},"review_comment":{"href":"https://api.github.com/repos/rackspace/gophercloud/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/rackspace/gophercloud/pulls/486/commits"},"statuses":{"href":"https://api.github.com/repos/rackspace/gophercloud/statuses/f1daafe5364ca18c342f7767b83e334d419f59ae"}}}}