{"action":"created","issue":{"url":"https://api.github.com/repos/openshift/origin/issues/9353","repository_url":"https://api.github.com/repos/openshift/origin","labels_url":"https://api.github.com/repos/openshift/origin/issues/9353/labels{/name}","comments_url":"https://api.github.com/repos/openshift/origin/issues/9353/comments","events_url":"https://api.github.com/repos/openshift/origin/issues/9353/events","html_url":"https://github.com/openshift/origin/pull/9353","id":160505998,"number":9353,"title":"Limits the amount of suggestions of a faulty new-build command to 5, fixes #7729","user":{"login":"oatmealraisin","id":6402382,"avatar_url":"https://avatars.githubusercontent.com/u/6402382?v=3","gravatar_id":"","url":"https://api.github.com/users/oatmealraisin","html_url":"https://github.com/oatmealraisin","followers_url":"https://api.github.com/users/oatmealraisin/followers","following_url":"https://api.github.com/users/oatmealraisin/following{/other_user}","gists_url":"https://api.github.com/users/oatmealraisin/gists{/gist_id}","starred_url":"https://api.github.com/users/oatmealraisin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oatmealraisin/subscriptions","organizations_url":"https://api.github.com/users/oatmealraisin/orgs","repos_url":"https://api.github.com/users/oatmealraisin/repos","events_url":"https://api.github.com/users/oatmealraisin/events{/privacy}","received_events_url":"https://api.github.com/users/oatmealraisin/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":26,"created_at":"2016-06-15T19:38:48Z","updated_at":"2016-07-12T20:27:10Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/openshift/origin/pulls/9353","html_url":"https://github.com/openshift/origin/pull/9353","diff_url":"https://github.com/openshift/origin/pull/9353.diff","patch_url":"https://github.com/openshift/origin/pull/9353.patch"},"body":"Limits the amount of suggestions of a faulty new-build command to 5, with highest match score appearing first.\r\n\r\nfixes #7729 \r\n\r\nOld output: \r\n```\r\noc new-build -D $'FROM openshft/origin:v1.1\\nENV ok=1' --to origin-test:v1.1\r\nerror: multiple images or templates matched \"openshft/origin:v1.1\": 15\r\n\r\nThe argument \"openshft/origin:v1.1\" could apply to the following Docker images, OpenShift image streams, or templates:\r\n\r\n* Docker image \"openshift/origin-base:latest\", 3788e83, from local, 74.943mb\r\n  Use --docker-image=\"openshift/origin-base:latest\" to specify this image or template\r\n\r\n* Docker image \"docker.io/openshift/origin:latest\", 819ca62, from local, 133.052mb\r\n  Use --docker-image=\"docker.io/openshift/origin:latest\" to specify this image or template\r\n\r\n* Docker image \"myproject/origin-test-1:6c16fcd3\", 783819e, from local\r\n  Use --docker-image=\"myproject/origin-test-1:6c16fcd3\" to specify this image or template\r\n\r\n* Docker image \"openshift/origin-release:latest\", 8968bf1, from local, 412.836mb\r\n  Use --docker-image=\"openshift/origin-release:latest\" to specify this image or template\r\n\r\n* Docker image \"openshift/origin-haproxy-router-base:latest\", eeadaef, from local, 18.243mb\r\n  Use --docker-image=\"openshift/origin-haproxy-router-base:latest\" to specify this image or template\r\n\r\n* Docker image \"docker.io/openshift/origin-docker-builder:latest\", b171beb, from local\r\n  Use --docker-image=\"docker.io/openshift/origin-docker-builder:latest\" to specify this image or template\r\n\r\n* Docker image \"docker.io/openshift/origin-docker-registry:latest\", b2fbc24, from local, 48.080mb\r\n  Use --docker-image=\"docker.io/openshift/origin-docker-registry:latest\" to specify this image or template\r\n\r\n* Docker image \"docker.io/openshift/origin-sti-builder:latest\", 7464c40, from local\r\n  Use --docker-image=\"docker.io/openshift/origin-sti-builder:latest\" to specify this image or template\r\n\r\n* Docker image \"docker.io/openshift/origin-deployer:latest\", b449a8c, from local\r\n  Use --docker-image=\"docker.io/openshift/origin-deployer:latest\" to specify this image or template\r\n\r\n* Docker image \"docker.io/openshift/origin-haproxy-router:latest\", e77286e, from local, 18.265mb\r\n  Use --docker-image=\"docker.io/openshift/origin-haproxy-router:latest\" to specify this image or template\r\n\r\n* Docker image \"docker.io/openshift/origin-docker-builder:v1.3.0-alpha.1\", 51ecec8, from local\r\n  Use --docker-image=\"docker.io/openshift/origin-docker-builder:v1.3.0-alpha.1\" to specify this image or template\r\n\r\n* Docker image \"docker.io/openshift/origin-deployer:v1.3.0-alpha.1\", 8dcfa74, from local\r\n  Use --docker-image=\"docker.io/openshift/origin-deployer:v1.3.0-alpha.1\" to specify this image or template\r\n\r\n* Docker image \"docker.io/openshift/origin-pod:latest\", cf08328, from local, 1.517mb\r\n  Use --docker-image=\"docker.io/openshift/origin-pod:latest\" to specify this image or template\r\n\r\n* Docker image \"docker.io/openshift/origin-docker-registry:v1.3.0-alpha.1\", 8663602, from local, 45.227mb\r\n  Use --docker-image=\"docker.io/openshift/origin-docker-registry:v1.3.0-alpha.1\" to specify this image or template\r\n\r\n* Docker image \"docker.io/openshift/origin-pod:v1.3.0-alpha.1\", 1086c95, from local, 1.517mb\r\n  Use --docker-image=\"docker.io/openshift/origin-pod:v1.3.0-alpha.1\" to specify this image or template\r\n```\r\n\r\nNew output:\r\n```\r\noc new-build -D $'FROM openshft/origin:v1.1\\nENV ok=1' --to origin-test:v1.1\r\nerror: multiple images or templates matched \"openshft/origin:v1.1\": 15\r\n\r\nThe argument \"openshft/origin:v1.1\" could apply to the following Docker images, OpenShift image streams, or templates:\r\n\r\n* Docker image \"openshift/origin-base:latest\", 3788e83, from local, 74.943mb\r\n  Use --docker-image=\"openshift/origin-base:latest\" to specify this image or template\r\n\r\n* Docker image \"docker.io/openshift/origin:latest\", 819ca62, from local, 133.052mb\r\n  Use --docker-image=\"docker.io/openshift/origin:latest\" to specify this image or template\r\n\r\n* Docker image \"myproject/origin-test-1:6c16fcd3\", 783819e, from local\r\n  Use --docker-image=\"myproject/origin-test-1:6c16fcd3\" to specify this image or template\r\n\r\n* Docker image \"openshift/origin-release:latest\", 8968bf1, from local, 412.836mb\r\n  Use --docker-image=\"openshift/origin-release:latest\" to specify this image or template\r\n\r\n* Docker image \"openshift/origin-haproxy-router-base:latest\", eeadaef, from local, 18.243mb\r\n  Use --docker-image=\"openshift/origin-haproxy-router-base:latest\" to specify this image or template\r\n```\r\n\r\n@bparees "},"comment":{"url":"https://api.github.com/repos/openshift/origin/issues/comments/232169629","html_url":"https://github.com/openshift/origin/pull/9353#issuecomment-232169629","issue_url":"https://api.github.com/repos/openshift/origin/issues/9353","id":232169629,"user":{"login":"openshift-bot","id":1779249,"avatar_url":"https://avatars.githubusercontent.com/u/1779249?v=3","gravatar_id":"","url":"https://api.github.com/users/openshift-bot","html_url":"https://github.com/openshift-bot","followers_url":"https://api.github.com/users/openshift-bot/followers","following_url":"https://api.github.com/users/openshift-bot/following{/other_user}","gists_url":"https://api.github.com/users/openshift-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/openshift-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openshift-bot/subscriptions","organizations_url":"https://api.github.com/users/openshift-bot/orgs","repos_url":"https://api.github.com/users/openshift-bot/repos","events_url":"https://api.github.com/users/openshift-bot/events{/privacy}","received_events_url":"https://api.github.com/users/openshift-bot/received_events","type":"User","site_admin":false},"created_at":"2016-07-12T20:27:09Z","updated_at":"2016-07-12T20:27:09Z","body":"Evaluated for origin test up to 989fbf1ca6e2346be792fc6d5eec0bd3ddc0201f"}}
{"actor":{"display_login":"openshift-bot"}}