{"action":"created","issue":{"url":"https://api.github.com/repos/openshift/origin/issues/12328","repository_url":"https://api.github.com/repos/openshift/origin","labels_url":"https://api.github.com/repos/openshift/origin/issues/12328/labels{/name}","comments_url":"https://api.github.com/repos/openshift/origin/issues/12328/comments","events_url":"https://api.github.com/repos/openshift/origin/issues/12328/events","html_url":"https://github.com/openshift/origin/pull/12328","id":197243839,"number":12328,"title":"Update \"no projects\" warning in `oc status`","user":{"login":"juanvallejo","id":3902875,"avatar_url":"https://avatars.githubusercontent.com/u/3902875?v=3","gravatar_id":"","url":"https://api.github.com/users/juanvallejo","html_url":"https://github.com/juanvallejo","followers_url":"https://api.github.com/users/juanvallejo/followers","following_url":"https://api.github.com/users/juanvallejo/following{/other_user}","gists_url":"https://api.github.com/users/juanvallejo/gists{/gist_id}","starred_url":"https://api.github.com/users/juanvallejo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/juanvallejo/subscriptions","organizations_url":"https://api.github.com/users/juanvallejo/orgs","repos_url":"https://api.github.com/users/juanvallejo/repos","events_url":"https://api.github.com/users/juanvallejo/events{/privacy}","received_events_url":"https://api.github.com/users/juanvallejo/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":23,"created_at":"2016-12-22T18:56:27Z","updated_at":"2017-01-24T13:42:25Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/openshift/origin/pulls/12328","html_url":"https://github.com/openshift/origin/pull/12328","diff_url":"https://github.com/openshift/origin/pull/12328.diff","patch_url":"https://github.com/openshift/origin/pull/12328.patch"},"body":"Related bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=1405636#c3\r\nRelated PR: https://github.com/openshift/origin/pull/12304\r\n\r\nThis patch only re-uses the `oc login` \"no projects\" warning in\r\n`oc status` when a user cannot access the current default namespace\r\nand has not yet created any projects and has not passed a namespace\r\nvalue with the `--namespace` flag.\r\n\r\n**Before**\r\n```\r\n$ oc login -u newuser -p any\r\n$ oc status\r\nYou don't have any projects. You can try to create a new project, by\r\nrunning\r\n\r\n    oc new-project <projectname>\r\n\r\n$ oc status -n default\r\nYou don't have any projects. You can try to create a new project, by\r\nrunning\r\n\r\n    oc new-project <projectname>\r\n```\r\n\r\n**After**\r\n```\r\n$ oc login -u newuser -p any\r\n$ oc status\r\nYou don't have any projects. You can try to create a new project, by\r\nrunning\r\n\r\n    oc new-project <projectname>\r\n\r\n$ oc status -n default\r\nError from server: User \"newuser\" cannot get projects in project \"default\"\r\n\r\n$ oc new-project proj1\r\n$ oc new-project proj2\r\n\r\n$ oc status\r\nIn project proj2 on server https://10.13.137.149:8443\r\n\r\nYou have no services, deployment configs, or build configs.\r\nRun 'oc new-app' to create an application.\r\n\r\n$ oc delete project proj2\r\n$ oc status\r\nError from server: User \"newuser\" cannot get projects in project \"proj2\"\r\n\r\n$ oc logout\r\n$ oc login -u newuser -p any\r\n$ oc status\r\nIn project proj1 on server https://10.13.137.149:8443\r\n\r\nYou have no services, deployment configs, or build configs.\r\nRun 'oc new-app' to create an application.\r\n```\r\n\r\ncc @openshift/cli-review "},"comment":{"url":"https://api.github.com/repos/openshift/origin/issues/comments/274805421","html_url":"https://github.com/openshift/origin/pull/12328#issuecomment-274805421","issue_url":"https://api.github.com/repos/openshift/origin/issues/12328","id":274805421,"user":{"login":"fabianofranz","id":158611,"avatar_url":"https://avatars.githubusercontent.com/u/158611?v=3","gravatar_id":"","url":"https://api.github.com/users/fabianofranz","html_url":"https://github.com/fabianofranz","followers_url":"https://api.github.com/users/fabianofranz/followers","following_url":"https://api.github.com/users/fabianofranz/following{/other_user}","gists_url":"https://api.github.com/users/fabianofranz/gists{/gist_id}","starred_url":"https://api.github.com/users/fabianofranz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fabianofranz/subscriptions","organizations_url":"https://api.github.com/users/fabianofranz/orgs","repos_url":"https://api.github.com/users/fabianofranz/repos","events_url":"https://api.github.com/users/fabianofranz/events{/privacy}","received_events_url":"https://api.github.com/users/fabianofranz/received_events","type":"User","site_admin":false},"created_at":"2017-01-24T13:42:25Z","updated_at":"2017-01-24T13:42:25Z","body":"[merge]"}}
{"actor":{"display_login":"fabianofranz"}}