{"action":"closed","number":20,"pull_request":{"url":"https://api.github.com/repos/projectatomic/docker-storage-setup/pulls/20","id":34289171,"html_url":"https://github.com/projectatomic/docker-storage-setup/pull/20","diff_url":"https://github.com/projectatomic/docker-storage-setup/pull/20.diff","patch_url":"https://github.com/projectatomic/docker-storage-setup/pull/20.patch","issue_url":"https://api.github.com/repos/projectatomic/docker-storage-setup/issues/20","number":20,"state":"closed","locked":false,"title":"Atomically update config file","user":{"login":"cgwalters","id":244096,"avatar_url":"https://avatars.githubusercontent.com/u/244096?v=3","gravatar_id":"","url":"https://api.github.com/users/cgwalters","html_url":"https://github.com/cgwalters","followers_url":"https://api.github.com/users/cgwalters/followers","following_url":"https://api.github.com/users/cgwalters/following{/other_user}","gists_url":"https://api.github.com/users/cgwalters/gists{/gist_id}","starred_url":"https://api.github.com/users/cgwalters/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cgwalters/subscriptions","organizations_url":"https://api.github.com/users/cgwalters/orgs","repos_url":"https://api.github.com/users/cgwalters/repos","events_url":"https://api.github.com/users/cgwalters/events{/privacy}","received_events_url":"https://api.github.com/users/cgwalters/received_events","type":"User","site_admin":false},"body":"Just noticed this while reviewing another PR; previously if we got\r\ne.g. ENOSPC or something on startup, we'd leave a broken partially\r\nwritten file.  Do the tempfile + `rename()` dance.","created_at":"2015-04-28T17:09:43Z","updated_at":"2015-04-28T17:19:28Z","closed_at":"2015-04-28T17:19:28Z","merged_at":"2015-04-28T17:19:28Z","merge_commit_sha":"9c28c3228c45740744f061a17a8daf567c9d25bd","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/projectatomic/docker-storage-setup/pulls/20/commits","review_comments_url":"https://api.github.com/repos/projectatomic/docker-storage-setup/pulls/20/comments","review_comment_url":"https://api.github.com/repos/projectatomic/docker-storage-setup/pulls/comments{/number}","comments_url":"https://api.github.com/repos/projectatomic/docker-storage-setup/issues/20/comments","statuses_url":"https://api.github.com/repos/projectatomic/docker-storage-setup/statuses/5be8d1ac8eaa2b1348544e5c13d3522ddfee9911","head":{"label":"cgwalters:atomic-config-overwrite","ref":"atomic-config-overwrite","sha":"5be8d1ac8eaa2b1348544e5c13d3522ddfee9911","user":{"login":"cgwalters","id":244096,"avatar_url":"https://avatars.githubusercontent.com/u/244096?v=3","gravatar_id":"","url":"https://api.github.com/users/cgwalters","html_url":"https://github.com/cgwalters","followers_url":"https://api.github.com/users/cgwalters/followers","following_url":"https://api.github.com/users/cgwalters/following{/other_user}","gists_url":"https://api.github.com/users/cgwalters/gists{/gist_id}","starred_url":"https://api.github.com/users/cgwalters/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cgwalters/subscriptions","organizations_url":"https://api.github.com/users/cgwalters/orgs","repos_url":"https://api.github.com/users/cgwalters/repos","events_url":"https://api.github.com/users/cgwalters/events{/privacy}","received_events_url":"https://api.github.com/users/cgwalters/received_events","type":"User","site_admin":false},"repo":{"id":34744448,"name":"docker-storage-setup","full_name":"cgwalters/docker-storage-setup","owner":{"login":"cgwalters","id":244096,"avatar_url":"https://avatars.githubusercontent.com/u/244096?v=3","gravatar_id":"","url":"https://api.github.com/users/cgwalters","html_url":"https://github.com/cgwalters","followers_url":"https://api.github.com/users/cgwalters/followers","following_url":"https://api.github.com/users/cgwalters/following{/other_user}","gists_url":"https://api.github.com/users/cgwalters/gists{/gist_id}","starred_url":"https://api.github.com/users/cgwalters/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cgwalters/subscriptions","organizations_url":"https://api.github.com/users/cgwalters/orgs","repos_url":"https://api.github.com/users/cgwalters/repos","events_url":"https://api.github.com/users/cgwalters/events{/privacy}","received_events_url":"https://api.github.com/users/cgwalters/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/cgwalters/docker-storage-setup","description":"A simple service to config docker storage","fork":true,"url":"https://api.github.com/repos/cgwalters/docker-storage-setup","forks_url":"https://api.github.com/repos/cgwalters/docker-storage-setup/forks","keys_url":"https://api.github.com/repos/cgwalters/docker-storage-setup/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cgwalters/docker-storage-setup/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cgwalters/docker-storage-setup/teams","hooks_url":"https://api.github.com/repos/cgwalters/docker-storage-setup/hooks","issue_events_url":"https://api.github.com/repos/cgwalters/docker-storage-setup/issues/events{/number}","events_url":"https://api.github.com/repos/cgwalters/docker-storage-setup/events","assignees_url":"https://api.github.com/repos/cgwalters/docker-storage-setup/assignees{/user}","branches_url":"https://api.github.com/repos/cgwalters/docker-storage-setup/branches{/branch}","tags_url":"https://api.github.com/repos/cgwalters/docker-storage-setup/tags","blobs_url":"https://api.github.com/repos/cgwalters/docker-storage-setup/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cgwalters/docker-storage-setup/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cgwalters/docker-storage-setup/git/refs{/sha}","trees_url":"https://api.github.com/repos/cgwalters/docker-storage-setup/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cgwalters/docker-storage-setup/statuses/{sha}","languages_url":"https://api.github.com/repos/cgwalters/docker-storage-setup/languages","stargazers_url":"https://api.github.com/repos/cgwalters/docker-storage-setup/stargazers","contributors_url":"https://api.github.com/repos/cgwalters/docker-storage-setup/contributors","subscribers_url":"https://api.github.com/repos/cgwalters/docker-storage-setup/subscribers","subscription_url":"https://api.github.com/repos/cgwalters/docker-storage-setup/subscription","commits_url":"https://api.github.com/repos/cgwalters/docker-storage-setup/commits{/sha}","git_commits_url":"https://api.github.com/repos/cgwalters/docker-storage-setup/git/commits{/sha}","comments_url":"https://api.github.com/repos/cgwalters/docker-storage-setup/comments{/number}","issue_comment_url":"https://api.github.com/repos/cgwalters/docker-storage-setup/issues/comments{/number}","contents_url":"https://api.github.com/repos/cgwalters/docker-storage-setup/contents/{+path}","compare_url":"https://api.github.com/repos/cgwalters/docker-storage-setup/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cgwalters/docker-storage-setup/merges","archive_url":"https://api.github.com/repos/cgwalters/docker-storage-setup/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cgwalters/docker-storage-setup/downloads","issues_url":"https://api.github.com/repos/cgwalters/docker-storage-setup/issues{/number}","pulls_url":"https://api.github.com/repos/cgwalters/docker-storage-setup/pulls{/number}","milestones_url":"https://api.github.com/repos/cgwalters/docker-storage-setup/milestones{/number}","notifications_url":"https://api.github.com/repos/cgwalters/docker-storage-setup/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cgwalters/docker-storage-setup/labels{/name}","releases_url":"https://api.github.com/repos/cgwalters/docker-storage-setup/releases{/id}","created_at":"2015-04-28T17:09:19Z","updated_at":"2015-04-28T17:09:20Z","pushed_at":"2015-04-28T17:09:34Z","git_url":"git://github.com/cgwalters/docker-storage-setup.git","ssh_url":"git@github.com:cgwalters/docker-storage-setup.git","clone_url":"https://github.com/cgwalters/docker-storage-setup.git","svn_url":"https://github.com/cgwalters/docker-storage-setup","homepage":null,"size":215,"stargazers_count":0,"watchers_count":0,"language":"Shell","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"projectatomic:master","ref":"master","sha":"762750aafd280a31e28edccf29c3dd70f59d1cb9","user":{"login":"projectatomic","id":6852258,"avatar_url":"https://avatars.githubusercontent.com/u/6852258?v=3","gravatar_id":"","url":"https://api.github.com/users/projectatomic","html_url":"https://github.com/projectatomic","followers_url":"https://api.github.com/users/projectatomic/followers","following_url":"https://api.github.com/users/projectatomic/following{/other_user}","gists_url":"https://api.github.com/users/projectatomic/gists{/gist_id}","starred_url":"https://api.github.com/users/projectatomic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/projectatomic/subscriptions","organizations_url":"https://api.github.com/users/projectatomic/orgs","repos_url":"https://api.github.com/users/projectatomic/repos","events_url":"https://api.github.com/users/projectatomic/events{/privacy}","received_events_url":"https://api.github.com/users/projectatomic/received_events","type":"Organization","site_admin":false},"repo":{"id":25310367,"name":"docker-storage-setup","full_name":"projectatomic/docker-storage-setup","owner":{"login":"projectatomic","id":6852258,"avatar_url":"https://avatars.githubusercontent.com/u/6852258?v=3","gravatar_id":"","url":"https://api.github.com/users/projectatomic","html_url":"https://github.com/projectatomic","followers_url":"https://api.github.com/users/projectatomic/followers","following_url":"https://api.github.com/users/projectatomic/following{/other_user}","gists_url":"https://api.github.com/users/projectatomic/gists{/gist_id}","starred_url":"https://api.github.com/users/projectatomic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/projectatomic/subscriptions","organizations_url":"https://api.github.com/users/projectatomic/orgs","repos_url":"https://api.github.com/users/projectatomic/repos","events_url":"https://api.github.com/users/projectatomic/events{/privacy}","received_events_url":"https://api.github.com/users/projectatomic/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/projectatomic/docker-storage-setup","description":"A simple service to config docker storage","fork":false,"url":"https://api.github.com/repos/projectatomic/docker-storage-setup","forks_url":"https://api.github.com/repos/projectatomic/docker-storage-setup/forks","keys_url":"https://api.github.com/repos/projectatomic/docker-storage-setup/keys{/key_id}","collaborators_url":"https://api.github.com/repos/projectatomic/docker-storage-setup/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/projectatomic/docker-storage-setup/teams","hooks_url":"https://api.github.com/repos/projectatomic/docker-storage-setup/hooks","issue_events_url":"https://api.github.com/repos/projectatomic/docker-storage-setup/issues/events{/number}","events_url":"https://api.github.com/repos/projectatomic/docker-storage-setup/events","assignees_url":"https://api.github.com/repos/projectatomic/docker-storage-setup/assignees{/user}","branches_url":"https://api.github.com/repos/projectatomic/docker-storage-setup/branches{/branch}","tags_url":"https://api.github.com/repos/projectatomic/docker-storage-setup/tags","blobs_url":"https://api.github.com/repos/projectatomic/docker-storage-setup/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/projectatomic/docker-storage-setup/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/projectatomic/docker-storage-setup/git/refs{/sha}","trees_url":"https://api.github.com/repos/projectatomic/docker-storage-setup/git/trees{/sha}","statuses_url":"https://api.github.com/repos/projectatomic/docker-storage-setup/statuses/{sha}","languages_url":"https://api.github.com/repos/projectatomic/docker-storage-setup/languages","stargazers_url":"https://api.github.com/repos/projectatomic/docker-storage-setup/stargazers","contributors_url":"https://api.github.com/repos/projectatomic/docker-storage-setup/contributors","subscribers_url":"https://api.github.com/repos/projectatomic/docker-storage-setup/subscribers","subscription_url":"https://api.github.com/repos/projectatomic/docker-storage-setup/subscription","commits_url":"https://api.github.com/repos/projectatomic/docker-storage-setup/commits{/sha}","git_commits_url":"https://api.github.com/repos/projectatomic/docker-storage-setup/git/commits{/sha}","comments_url":"https://api.github.com/repos/projectatomic/docker-storage-setup/comments{/number}","issue_comment_url":"https://api.github.com/repos/projectatomic/docker-storage-setup/issues/comments{/number}","contents_url":"https://api.github.com/repos/projectatomic/docker-storage-setup/contents/{+path}","compare_url":"https://api.github.com/repos/projectatomic/docker-storage-setup/compare/{base}...{head}","merges_url":"https://api.github.com/repos/projectatomic/docker-storage-setup/merges","archive_url":"https://api.github.com/repos/projectatomic/docker-storage-setup/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/projectatomic/docker-storage-setup/downloads","issues_url":"https://api.github.com/repos/projectatomic/docker-storage-setup/issues{/number}","pulls_url":"https://api.github.com/repos/projectatomic/docker-storage-setup/pulls{/number}","milestones_url":"https://api.github.com/repos/projectatomic/docker-storage-setup/milestones{/number}","notifications_url":"https://api.github.com/repos/projectatomic/docker-storage-setup/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/projectatomic/docker-storage-setup/labels{/name}","releases_url":"https://api.github.com/repos/projectatomic/docker-storage-setup/releases{/id}","created_at":"2014-10-16T16:11:13Z","updated_at":"2015-04-28T17:10:06Z","pushed_at":"2015-04-28T17:19:28Z","git_url":"git://github.com/projectatomic/docker-storage-setup.git","ssh_url":"git@github.com:projectatomic/docker-storage-setup.git","clone_url":"https://github.com/projectatomic/docker-storage-setup.git","svn_url":"https://github.com/projectatomic/docker-storage-setup","homepage":null,"size":215,"stargazers_count":6,"watchers_count":6,"language":"Shell","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":6,"mirror_url":null,"open_issues_count":10,"forks":6,"open_issues":10,"watchers":6,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/projectatomic/docker-storage-setup/pulls/20"},"html":{"href":"https://github.com/projectatomic/docker-storage-setup/pull/20"},"issue":{"href":"https://api.github.com/repos/projectatomic/docker-storage-setup/issues/20"},"comments":{"href":"https://api.github.com/repos/projectatomic/docker-storage-setup/issues/20/comments"},"review_comments":{"href":"https://api.github.com/repos/projectatomic/docker-storage-setup/pulls/20/comments"},"review_comment":{"href":"https://api.github.com/repos/projectatomic/docker-storage-setup/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/projectatomic/docker-storage-setup/pulls/20/commits"},"statuses":{"href":"https://api.github.com/repos/projectatomic/docker-storage-setup/statuses/5be8d1ac8eaa2b1348544e5c13d3522ddfee9911"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"cgwalters","id":244096,"avatar_url":"https://avatars.githubusercontent.com/u/244096?v=3","gravatar_id":"","url":"https://api.github.com/users/cgwalters","html_url":"https://github.com/cgwalters","followers_url":"https://api.github.com/users/cgwalters/followers","following_url":"https://api.github.com/users/cgwalters/following{/other_user}","gists_url":"https://api.github.com/users/cgwalters/gists{/gist_id}","starred_url":"https://api.github.com/users/cgwalters/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cgwalters/subscriptions","organizations_url":"https://api.github.com/users/cgwalters/orgs","repos_url":"https://api.github.com/users/cgwalters/repos","events_url":"https://api.github.com/users/cgwalters/events{/privacy}","received_events_url":"https://api.github.com/users/cgwalters/received_events","type":"User","site_admin":false},"comments":2,"review_comments":0,"commits":1,"additions":2,"deletions":1,"changed_files":1}}