{"action":"created","comment":{"url":"https://api.github.com/repos/kubernetes-incubator/client-python/pulls/comments/92712620","pull_request_review_id":13233810,"id":92712620,"diff_hunk":"@@ -259,6 +264,9 @@ def load_kube_config(config_file, context=None):\n     from config file will be used.\n     \"\"\"\n \n+    if not config_file:","path":"kubernetes/config/kube_config.py","position":32,"original_position":32,"commit_id":"d6fce7f50c888c29b9bfc89c3a019fc79a7c8c8b","original_commit_id":"d6fce7f50c888c29b9bfc89c3a019fc79a7c8c8b","user":{"login":"mml","id":3115,"avatar_url":"https://avatars.githubusercontent.com/u/3115?v=3","gravatar_id":"","url":"https://api.github.com/users/mml","html_url":"https://github.com/mml","followers_url":"https://api.github.com/users/mml/followers","following_url":"https://api.github.com/users/mml/following{/other_user}","gists_url":"https://api.github.com/users/mml/gists{/gist_id}","starred_url":"https://api.github.com/users/mml/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mml/subscriptions","organizations_url":"https://api.github.com/users/mml/orgs","repos_url":"https://api.github.com/users/mml/repos","events_url":"https://api.github.com/users/mml/events{/privacy}","received_events_url":"https://api.github.com/users/mml/received_events","type":"User","site_admin":false},"body":"I would use `if config_file is not None` here.\r\n","created_at":"2016-12-15T22:19:10Z","updated_at":"2016-12-15T22:19:10Z","html_url":"https://github.com/kubernetes-incubator/client-python/pull/64#discussion_r92712620","pull_request_url":"https://api.github.com/repos/kubernetes-incubator/client-python/pulls/64","_links":{"self":{"href":"https://api.github.com/repos/kubernetes-incubator/client-python/pulls/comments/92712620"},"html":{"href":"https://github.com/kubernetes-incubator/client-python/pull/64#discussion_r92712620"},"pull_request":{"href":"https://api.github.com/repos/kubernetes-incubator/client-python/pulls/64"}}},"pull_request":{"url":"https://api.github.com/repos/kubernetes-incubator/client-python/pulls/64","id":97867771,"html_url":"https://github.com/kubernetes-incubator/client-python/pull/64","diff_url":"https://github.com/kubernetes-incubator/client-python/pull/64.diff","patch_url":"https://github.com/kubernetes-incubator/client-python/pull/64.patch","issue_url":"https://api.github.com/repos/kubernetes-incubator/client-python/issues/64","number":64,"state":"open","locked":false,"title":"Add default kube config location","user":{"login":"mbohlool","id":1613024,"avatar_url":"https://avatars.githubusercontent.com/u/1613024?v=3","gravatar_id":"","url":"https://api.github.com/users/mbohlool","html_url":"https://github.com/mbohlool","followers_url":"https://api.github.com/users/mbohlool/followers","following_url":"https://api.github.com/users/mbohlool/following{/other_user}","gists_url":"https://api.github.com/users/mbohlool/gists{/gist_id}","starred_url":"https://api.github.com/users/mbohlool/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mbohlool/subscriptions","organizations_url":"https://api.github.com/users/mbohlool/orgs","repos_url":"https://api.github.com/users/mbohlool/repos","events_url":"https://api.github.com/users/mbohlool/events{/privacy}","received_events_url":"https://api.github.com/users/mbohlool/received_events","type":"User","site_admin":false},"body":"`kubenetes.config.load_config` needs the location of config file to load it. We can set the location to the default location of ~/.kube/config.","created_at":"2016-12-14T00:54:54Z","updated_at":"2016-12-15T22:19:16Z","closed_at":null,"merged_at":null,"merge_commit_sha":"9a7be8194efcee3dd069c8b239393bc00d6ea458","assignee":{"login":"mml","id":3115,"avatar_url":"https://avatars.githubusercontent.com/u/3115?v=3","gravatar_id":"","url":"https://api.github.com/users/mml","html_url":"https://github.com/mml","followers_url":"https://api.github.com/users/mml/followers","following_url":"https://api.github.com/users/mml/following{/other_user}","gists_url":"https://api.github.com/users/mml/gists{/gist_id}","starred_url":"https://api.github.com/users/mml/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mml/subscriptions","organizations_url":"https://api.github.com/users/mml/orgs","repos_url":"https://api.github.com/users/mml/repos","events_url":"https://api.github.com/users/mml/events{/privacy}","received_events_url":"https://api.github.com/users/mml/received_events","type":"User","site_admin":false},"assignees":[{"login":"mml","id":3115,"avatar_url":"https://avatars.githubusercontent.com/u/3115?v=3","gravatar_id":"","url":"https://api.github.com/users/mml","html_url":"https://github.com/mml","followers_url":"https://api.github.com/users/mml/followers","following_url":"https://api.github.com/users/mml/following{/other_user}","gists_url":"https://api.github.com/users/mml/gists{/gist_id}","starred_url":"https://api.github.com/users/mml/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mml/subscriptions","organizations_url":"https://api.github.com/users/mml/orgs","repos_url":"https://api.github.com/users/mml/repos","events_url":"https://api.github.com/users/mml/events{/privacy}","received_events_url":"https://api.github.com/users/mml/received_events","type":"User","site_admin":false},{"login":"caesarxuchao","id":2823529,"avatar_url":"https://avatars.githubusercontent.com/u/2823529?v=3","gravatar_id":"","url":"https://api.github.com/users/caesarxuchao","html_url":"https://github.com/caesarxuchao","followers_url":"https://api.github.com/users/caesarxuchao/followers","following_url":"https://api.github.com/users/caesarxuchao/following{/other_user}","gists_url":"https://api.github.com/users/caesarxuchao/gists{/gist_id}","starred_url":"https://api.github.com/users/caesarxuchao/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/caesarxuchao/subscriptions","organizations_url":"https://api.github.com/users/caesarxuchao/orgs","repos_url":"https://api.github.com/users/caesarxuchao/repos","events_url":"https://api.github.com/users/caesarxuchao/events{/privacy}","received_events_url":"https://api.github.com/users/caesarxuchao/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/kubernetes-incubator/client-python/pulls/64/commits","review_comments_url":"https://api.github.com/repos/kubernetes-incubator/client-python/pulls/64/comments","review_comment_url":"https://api.github.com/repos/kubernetes-incubator/client-python/pulls/comments{/number}","comments_url":"https://api.github.com/repos/kubernetes-incubator/client-python/issues/64/comments","statuses_url":"https://api.github.com/repos/kubernetes-incubator/client-python/statuses/d6fce7f50c888c29b9bfc89c3a019fc79a7c8c8b","head":{"label":"mbohlool:c4","ref":"c4","sha":"d6fce7f50c888c29b9bfc89c3a019fc79a7c8c8b","user":{"login":"mbohlool","id":1613024,"avatar_url":"https://avatars.githubusercontent.com/u/1613024?v=3","gravatar_id":"","url":"https://api.github.com/users/mbohlool","html_url":"https://github.com/mbohlool","followers_url":"https://api.github.com/users/mbohlool/followers","following_url":"https://api.github.com/users/mbohlool/following{/other_user}","gists_url":"https://api.github.com/users/mbohlool/gists{/gist_id}","starred_url":"https://api.github.com/users/mbohlool/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mbohlool/subscriptions","organizations_url":"https://api.github.com/users/mbohlool/orgs","repos_url":"https://api.github.com/users/mbohlool/repos","events_url":"https://api.github.com/users/mbohlool/events{/privacy}","received_events_url":"https://api.github.com/users/mbohlool/received_events","type":"User","site_admin":false},"repo":{"id":75909466,"name":"client-python","full_name":"mbohlool/client-python","owner":{"login":"mbohlool","id":1613024,"avatar_url":"https://avatars.githubusercontent.com/u/1613024?v=3","gravatar_id":"","url":"https://api.github.com/users/mbohlool","html_url":"https://github.com/mbohlool","followers_url":"https://api.github.com/users/mbohlool/followers","following_url":"https://api.github.com/users/mbohlool/following{/other_user}","gists_url":"https://api.github.com/users/mbohlool/gists{/gist_id}","starred_url":"https://api.github.com/users/mbohlool/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mbohlool/subscriptions","organizations_url":"https://api.github.com/users/mbohlool/orgs","repos_url":"https://api.github.com/users/mbohlool/repos","events_url":"https://api.github.com/users/mbohlool/events{/privacy}","received_events_url":"https://api.github.com/users/mbohlool/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mbohlool/client-python","description":"Python clients for kubernetes","fork":true,"url":"https://api.github.com/repos/mbohlool/client-python","forks_url":"https://api.github.com/repos/mbohlool/client-python/forks","keys_url":"https://api.github.com/repos/mbohlool/client-python/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mbohlool/client-python/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mbohlool/client-python/teams","hooks_url":"https://api.github.com/repos/mbohlool/client-python/hooks","issue_events_url":"https://api.github.com/repos/mbohlool/client-python/issues/events{/number}","events_url":"https://api.github.com/repos/mbohlool/client-python/events","assignees_url":"https://api.github.com/repos/mbohlool/client-python/assignees{/user}","branches_url":"https://api.github.com/repos/mbohlool/client-python/branches{/branch}","tags_url":"https://api.github.com/repos/mbohlool/client-python/tags","blobs_url":"https://api.github.com/repos/mbohlool/client-python/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mbohlool/client-python/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mbohlool/client-python/git/refs{/sha}","trees_url":"https://api.github.com/repos/mbohlool/client-python/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mbohlool/client-python/statuses/{sha}","languages_url":"https://api.github.com/repos/mbohlool/client-python/languages","stargazers_url":"https://api.github.com/repos/mbohlool/client-python/stargazers","contributors_url":"https://api.github.com/repos/mbohlool/client-python/contributors","subscribers_url":"https://api.github.com/repos/mbohlool/client-python/subscribers","subscription_url":"https://api.github.com/repos/mbohlool/client-python/subscription","commits_url":"https://api.github.com/repos/mbohlool/client-python/commits{/sha}","git_commits_url":"https://api.github.com/repos/mbohlool/client-python/git/commits{/sha}","comments_url":"https://api.github.com/repos/mbohlool/client-python/comments{/number}","issue_comment_url":"https://api.github.com/repos/mbohlool/client-python/issues/comments{/number}","contents_url":"https://api.github.com/repos/mbohlool/client-python/contents/{+path}","compare_url":"https://api.github.com/repos/mbohlool/client-python/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mbohlool/client-python/merges","archive_url":"https://api.github.com/repos/mbohlool/client-python/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mbohlool/client-python/downloads","issues_url":"https://api.github.com/repos/mbohlool/client-python/issues{/number}","pulls_url":"https://api.github.com/repos/mbohlool/client-python/pulls{/number}","milestones_url":"https://api.github.com/repos/mbohlool/client-python/milestones{/number}","notifications_url":"https://api.github.com/repos/mbohlool/client-python/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mbohlool/client-python/labels{/name}","releases_url":"https://api.github.com/repos/mbohlool/client-python/releases{/id}","deployments_url":"https://api.github.com/repos/mbohlool/client-python/deployments","created_at":"2016-12-08T06:23:06Z","updated_at":"2016-12-08T06:23:08Z","pushed_at":"2016-12-15T22:09:34Z","git_url":"git://github.com/mbohlool/client-python.git","ssh_url":"git@github.com:mbohlool/client-python.git","clone_url":"https://github.com/mbohlool/client-python.git","svn_url":"https://github.com/mbohlool/client-python","homepage":"http://kubernetes.io/","size":1107,"stargazers_count":0,"watchers_count":0,"language":"Python","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":"kubernetes-incubator:master","ref":"master","sha":"25f0211854ea198b006138a9ac8574fe7e0a2a55","user":{"login":"kubernetes-incubator","id":20862812,"avatar_url":"https://avatars.githubusercontent.com/u/20862812?v=3","gravatar_id":"","url":"https://api.github.com/users/kubernetes-incubator","html_url":"https://github.com/kubernetes-incubator","followers_url":"https://api.github.com/users/kubernetes-incubator/followers","following_url":"https://api.github.com/users/kubernetes-incubator/following{/other_user}","gists_url":"https://api.github.com/users/kubernetes-incubator/gists{/gist_id}","starred_url":"https://api.github.com/users/kubernetes-incubator/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kubernetes-incubator/subscriptions","organizations_url":"https://api.github.com/users/kubernetes-incubator/orgs","repos_url":"https://api.github.com/users/kubernetes-incubator/repos","events_url":"https://api.github.com/users/kubernetes-incubator/events{/privacy}","received_events_url":"https://api.github.com/users/kubernetes-incubator/received_events","type":"Organization","site_admin":false},"repo":{"id":72473727,"name":"client-python","full_name":"kubernetes-incubator/client-python","owner":{"login":"kubernetes-incubator","id":20862812,"avatar_url":"https://avatars.githubusercontent.com/u/20862812?v=3","gravatar_id":"","url":"https://api.github.com/users/kubernetes-incubator","html_url":"https://github.com/kubernetes-incubator","followers_url":"https://api.github.com/users/kubernetes-incubator/followers","following_url":"https://api.github.com/users/kubernetes-incubator/following{/other_user}","gists_url":"https://api.github.com/users/kubernetes-incubator/gists{/gist_id}","starred_url":"https://api.github.com/users/kubernetes-incubator/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kubernetes-incubator/subscriptions","organizations_url":"https://api.github.com/users/kubernetes-incubator/orgs","repos_url":"https://api.github.com/users/kubernetes-incubator/repos","events_url":"https://api.github.com/users/kubernetes-incubator/events{/privacy}","received_events_url":"https://api.github.com/users/kubernetes-incubator/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/kubernetes-incubator/client-python","description":"Python clients for kubernetes","fork":false,"url":"https://api.github.com/repos/kubernetes-incubator/client-python","forks_url":"https://api.github.com/repos/kubernetes-incubator/client-python/forks","keys_url":"https://api.github.com/repos/kubernetes-incubator/client-python/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kubernetes-incubator/client-python/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kubernetes-incubator/client-python/teams","hooks_url":"https://api.github.com/repos/kubernetes-incubator/client-python/hooks","issue_events_url":"https://api.github.com/repos/kubernetes-incubator/client-python/issues/events{/number}","events_url":"https://api.github.com/repos/kubernetes-incubator/client-python/events","assignees_url":"https://api.github.com/repos/kubernetes-incubator/client-python/assignees{/user}","branches_url":"https://api.github.com/repos/kubernetes-incubator/client-python/branches{/branch}","tags_url":"https://api.github.com/repos/kubernetes-incubator/client-python/tags","blobs_url":"https://api.github.com/repos/kubernetes-incubator/client-python/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kubernetes-incubator/client-python/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kubernetes-incubator/client-python/git/refs{/sha}","trees_url":"https://api.github.com/repos/kubernetes-incubator/client-python/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kubernetes-incubator/client-python/statuses/{sha}","languages_url":"https://api.github.com/repos/kubernetes-incubator/client-python/languages","stargazers_url":"https://api.github.com/repos/kubernetes-incubator/client-python/stargazers","contributors_url":"https://api.github.com/repos/kubernetes-incubator/client-python/contributors","subscribers_url":"https://api.github.com/repos/kubernetes-incubator/client-python/subscribers","subscription_url":"https://api.github.com/repos/kubernetes-incubator/client-python/subscription","commits_url":"https://api.github.com/repos/kubernetes-incubator/client-python/commits{/sha}","git_commits_url":"https://api.github.com/repos/kubernetes-incubator/client-python/git/commits{/sha}","comments_url":"https://api.github.com/repos/kubernetes-incubator/client-python/comments{/number}","issue_comment_url":"https://api.github.com/repos/kubernetes-incubator/client-python/issues/comments{/number}","contents_url":"https://api.github.com/repos/kubernetes-incubator/client-python/contents/{+path}","compare_url":"https://api.github.com/repos/kubernetes-incubator/client-python/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kubernetes-incubator/client-python/merges","archive_url":"https://api.github.com/repos/kubernetes-incubator/client-python/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kubernetes-incubator/client-python/downloads","issues_url":"https://api.github.com/repos/kubernetes-incubator/client-python/issues{/number}","pulls_url":"https://api.github.com/repos/kubernetes-incubator/client-python/pulls{/number}","milestones_url":"https://api.github.com/repos/kubernetes-incubator/client-python/milestones{/number}","notifications_url":"https://api.github.com/repos/kubernetes-incubator/client-python/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kubernetes-incubator/client-python/labels{/name}","releases_url":"https://api.github.com/repos/kubernetes-incubator/client-python/releases{/id}","deployments_url":"https://api.github.com/repos/kubernetes-incubator/client-python/deployments","created_at":"2016-10-31T20:08:03Z","updated_at":"2016-12-15T18:59:14Z","pushed_at":"2016-12-15T22:09:34Z","git_url":"git://github.com/kubernetes-incubator/client-python.git","ssh_url":"git@github.com:kubernetes-incubator/client-python.git","clone_url":"https://github.com/kubernetes-incubator/client-python.git","svn_url":"https://github.com/kubernetes-incubator/client-python","homepage":"http://kubernetes.io/","size":1103,"stargazers_count":33,"watchers_count":33,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":7,"mirror_url":null,"open_issues_count":18,"forks":7,"open_issues":18,"watchers":33,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/kubernetes-incubator/client-python/pulls/64"},"html":{"href":"https://github.com/kubernetes-incubator/client-python/pull/64"},"issue":{"href":"https://api.github.com/repos/kubernetes-incubator/client-python/issues/64"},"comments":{"href":"https://api.github.com/repos/kubernetes-incubator/client-python/issues/64/comments"},"review_comments":{"href":"https://api.github.com/repos/kubernetes-incubator/client-python/pulls/64/comments"},"review_comment":{"href":"https://api.github.com/repos/kubernetes-incubator/client-python/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/kubernetes-incubator/client-python/pulls/64/commits"},"statuses":{"href":"https://api.github.com/repos/kubernetes-incubator/client-python/statuses/d6fce7f50c888c29b9bfc89c3a019fc79a7c8c8b"}}}}
{"actor":{"display_login":"mml"}}