{"action":"created","comment":{"url":"https://api.github.com/repos/Yelp/paasta/pulls/comments/45018455","id":45018455,"diff_hunk":"@@ -200,9 +213,20 @@ def paasta_status(args):\n         cluster_filter = args.clusters.split(\",\")\n     else:\n         cluster_filter = None\n+    if args.instances is not None:\n+        instance_filter = args.instances.split(\",\")","path":"paasta_tools/paasta_cli/cmds/status.py","position":null,"original_position":117,"commit_id":"b5de366e993e28ef0b3aa879639e1459047d386b","original_commit_id":"75783435fd335cb4b6e466e368c1b7c08f4a22b8","user":{"login":"Rob-Johnson","id":1389671,"avatar_url":"https://avatars.githubusercontent.com/u/1389671?v=3","gravatar_id":"","url":"https://api.github.com/users/Rob-Johnson","html_url":"https://github.com/Rob-Johnson","followers_url":"https://api.github.com/users/Rob-Johnson/followers","following_url":"https://api.github.com/users/Rob-Johnson/following{/other_user}","gists_url":"https://api.github.com/users/Rob-Johnson/gists{/gist_id}","starred_url":"https://api.github.com/users/Rob-Johnson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Rob-Johnson/subscriptions","organizations_url":"https://api.github.com/users/Rob-Johnson/orgs","repos_url":"https://api.github.com/users/Rob-Johnson/repos","events_url":"https://api.github.com/users/Rob-Johnson/events{/privacy}","received_events_url":"https://api.github.com/users/Rob-Johnson/received_events","type":"User","site_admin":false},"body":"_whitelist is good.","created_at":"2015-11-17T03:22:56Z","updated_at":"2015-11-17T03:22:56Z","html_url":"https://github.com/Yelp/paasta/pull/53#discussion_r45018455","pull_request_url":"https://api.github.com/repos/Yelp/paasta/pulls/53","_links":{"self":{"href":"https://api.github.com/repos/Yelp/paasta/pulls/comments/45018455"},"html":{"href":"https://github.com/Yelp/paasta/pull/53#discussion_r45018455"},"pull_request":{"href":"https://api.github.com/repos/Yelp/paasta/pulls/53"}}},"pull_request":{"url":"https://api.github.com/repos/Yelp/paasta/pulls/53","id":50710192,"html_url":"https://github.com/Yelp/paasta/pull/53","diff_url":"https://github.com/Yelp/paasta/pull/53.diff","patch_url":"https://github.com/Yelp/paasta/pull/53.patch","issue_url":"https://api.github.com/repos/Yelp/paasta/issues/53","number":53,"state":"open","locked":false,"title":"Mrtyler instance filter","user":{"login":"mrtyler","id":1369918,"avatar_url":"https://avatars.githubusercontent.com/u/1369918?v=3","gravatar_id":"","url":"https://api.github.com/users/mrtyler","html_url":"https://github.com/mrtyler","followers_url":"https://api.github.com/users/mrtyler/followers","following_url":"https://api.github.com/users/mrtyler/following{/other_user}","gists_url":"https://api.github.com/users/mrtyler/gists{/gist_id}","starred_url":"https://api.github.com/users/mrtyler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mrtyler/subscriptions","organizations_url":"https://api.github.com/users/mrtyler/orgs","repos_url":"https://api.github.com/users/mrtyler/repos","events_url":"https://api.github.com/users/mrtyler/events{/privacy}","received_events_url":"https://api.github.com/users/mrtyler/received_events","type":"User","site_admin":false},"body":"I wanted to try out some stuff with a new instance of the reminder service, but that service has a ton of instances so doing paasta status is slow and painful. Now we can filter instances like we can filter clusters:\r\n\r\n```\r\n(py)troscoe@dev2-devc:~/paasta_tools (mrtyler_instance_filter) $ ./paasta_tools/paasta_cli/paasta_cli.py status -s paasta_canary -c norcal-devc,qwer -i sensu_canary,asdf\r\nPipeline: https://jenkins.yelpcorp.com/view/services-paasta_canary\r\n\r\ncluster: norcal-devc\r\n  instance: sensu_canary\r\n    Git sha:    b8517e76\r\n    Config:     configbb7d0b2a\r\n      Status:   Enabled, Started\r\n      Last:     OK (2015-11-13T16:40, a minute ago)\r\n      Schedule: R/2015-11-14T00:50:00.000Z/PT10M Epsilon: PT60S\r\n      Command:  sensu-scheduled-canary.sh\r\n      Mesos:    Not running\r\n\r\nWarning: This service does not have any instance matching these filters:\r\nasdf\r\n\r\nWarning: This service does not have any cluster matching these filters:\r\nqwer\r\n```\r\n","created_at":"2015-11-14T00:47:00Z","updated_at":"2015-11-17T03:22:56Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c885deeca42640db981939d755303384bb528b9b","assignee":{"login":"mrtyler","id":1369918,"avatar_url":"https://avatars.githubusercontent.com/u/1369918?v=3","gravatar_id":"","url":"https://api.github.com/users/mrtyler","html_url":"https://github.com/mrtyler","followers_url":"https://api.github.com/users/mrtyler/followers","following_url":"https://api.github.com/users/mrtyler/following{/other_user}","gists_url":"https://api.github.com/users/mrtyler/gists{/gist_id}","starred_url":"https://api.github.com/users/mrtyler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mrtyler/subscriptions","organizations_url":"https://api.github.com/users/mrtyler/orgs","repos_url":"https://api.github.com/users/mrtyler/repos","events_url":"https://api.github.com/users/mrtyler/events{/privacy}","received_events_url":"https://api.github.com/users/mrtyler/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/Yelp/paasta/pulls/53/commits","review_comments_url":"https://api.github.com/repos/Yelp/paasta/pulls/53/comments","review_comment_url":"https://api.github.com/repos/Yelp/paasta/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Yelp/paasta/issues/53/comments","statuses_url":"https://api.github.com/repos/Yelp/paasta/statuses/b5de366e993e28ef0b3aa879639e1459047d386b","head":{"label":"Yelp:mrtyler_instance_filter","ref":"mrtyler_instance_filter","sha":"b5de366e993e28ef0b3aa879639e1459047d386b","user":{"login":"Yelp","id":49071,"avatar_url":"https://avatars.githubusercontent.com/u/49071?v=3","gravatar_id":"","url":"https://api.github.com/users/Yelp","html_url":"https://github.com/Yelp","followers_url":"https://api.github.com/users/Yelp/followers","following_url":"https://api.github.com/users/Yelp/following{/other_user}","gists_url":"https://api.github.com/users/Yelp/gists{/gist_id}","starred_url":"https://api.github.com/users/Yelp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Yelp/subscriptions","organizations_url":"https://api.github.com/users/Yelp/orgs","repos_url":"https://api.github.com/users/Yelp/repos","events_url":"https://api.github.com/users/Yelp/events{/privacy}","received_events_url":"https://api.github.com/users/Yelp/received_events","type":"Organization","site_admin":false},"repo":{"id":44998824,"name":"paasta","full_name":"Yelp/paasta","owner":{"login":"Yelp","id":49071,"avatar_url":"https://avatars.githubusercontent.com/u/49071?v=3","gravatar_id":"","url":"https://api.github.com/users/Yelp","html_url":"https://github.com/Yelp","followers_url":"https://api.github.com/users/Yelp/followers","following_url":"https://api.github.com/users/Yelp/following{/other_user}","gists_url":"https://api.github.com/users/Yelp/gists{/gist_id}","starred_url":"https://api.github.com/users/Yelp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Yelp/subscriptions","organizations_url":"https://api.github.com/users/Yelp/orgs","repos_url":"https://api.github.com/users/Yelp/repos","events_url":"https://api.github.com/users/Yelp/events{/privacy}","received_events_url":"https://api.github.com/users/Yelp/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Yelp/paasta","description":"An open, distributed platform as a service","fork":false,"url":"https://api.github.com/repos/Yelp/paasta","forks_url":"https://api.github.com/repos/Yelp/paasta/forks","keys_url":"https://api.github.com/repos/Yelp/paasta/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Yelp/paasta/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Yelp/paasta/teams","hooks_url":"https://api.github.com/repos/Yelp/paasta/hooks","issue_events_url":"https://api.github.com/repos/Yelp/paasta/issues/events{/number}","events_url":"https://api.github.com/repos/Yelp/paasta/events","assignees_url":"https://api.github.com/repos/Yelp/paasta/assignees{/user}","branches_url":"https://api.github.com/repos/Yelp/paasta/branches{/branch}","tags_url":"https://api.github.com/repos/Yelp/paasta/tags","blobs_url":"https://api.github.com/repos/Yelp/paasta/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Yelp/paasta/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Yelp/paasta/git/refs{/sha}","trees_url":"https://api.github.com/repos/Yelp/paasta/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Yelp/paasta/statuses/{sha}","languages_url":"https://api.github.com/repos/Yelp/paasta/languages","stargazers_url":"https://api.github.com/repos/Yelp/paasta/stargazers","contributors_url":"https://api.github.com/repos/Yelp/paasta/contributors","subscribers_url":"https://api.github.com/repos/Yelp/paasta/subscribers","subscription_url":"https://api.github.com/repos/Yelp/paasta/subscription","commits_url":"https://api.github.com/repos/Yelp/paasta/commits{/sha}","git_commits_url":"https://api.github.com/repos/Yelp/paasta/git/commits{/sha}","comments_url":"https://api.github.com/repos/Yelp/paasta/comments{/number}","issue_comment_url":"https://api.github.com/repos/Yelp/paasta/issues/comments{/number}","contents_url":"https://api.github.com/repos/Yelp/paasta/contents/{+path}","compare_url":"https://api.github.com/repos/Yelp/paasta/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Yelp/paasta/merges","archive_url":"https://api.github.com/repos/Yelp/paasta/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Yelp/paasta/downloads","issues_url":"https://api.github.com/repos/Yelp/paasta/issues{/number}","pulls_url":"https://api.github.com/repos/Yelp/paasta/pulls{/number}","milestones_url":"https://api.github.com/repos/Yelp/paasta/milestones{/number}","notifications_url":"https://api.github.com/repos/Yelp/paasta/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Yelp/paasta/labels{/name}","releases_url":"https://api.github.com/repos/Yelp/paasta/releases{/id}","created_at":"2015-10-26T21:35:53Z","updated_at":"2015-11-17T01:51:41Z","pushed_at":"2015-11-17T03:17:56Z","git_url":"git://github.com/Yelp/paasta.git","ssh_url":"git@github.com:Yelp/paasta.git","clone_url":"https://github.com/Yelp/paasta.git","svn_url":"https://github.com/Yelp/paasta","homepage":"","size":6040,"stargazers_count":465,"watchers_count":465,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":25,"mirror_url":null,"open_issues_count":12,"forks":25,"open_issues":12,"watchers":465,"default_branch":"master"}},"base":{"label":"Yelp:master","ref":"master","sha":"f4c5d34bcba191882705d601b4ed6d505d25b78e","user":{"login":"Yelp","id":49071,"avatar_url":"https://avatars.githubusercontent.com/u/49071?v=3","gravatar_id":"","url":"https://api.github.com/users/Yelp","html_url":"https://github.com/Yelp","followers_url":"https://api.github.com/users/Yelp/followers","following_url":"https://api.github.com/users/Yelp/following{/other_user}","gists_url":"https://api.github.com/users/Yelp/gists{/gist_id}","starred_url":"https://api.github.com/users/Yelp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Yelp/subscriptions","organizations_url":"https://api.github.com/users/Yelp/orgs","repos_url":"https://api.github.com/users/Yelp/repos","events_url":"https://api.github.com/users/Yelp/events{/privacy}","received_events_url":"https://api.github.com/users/Yelp/received_events","type":"Organization","site_admin":false},"repo":{"id":44998824,"name":"paasta","full_name":"Yelp/paasta","owner":{"login":"Yelp","id":49071,"avatar_url":"https://avatars.githubusercontent.com/u/49071?v=3","gravatar_id":"","url":"https://api.github.com/users/Yelp","html_url":"https://github.com/Yelp","followers_url":"https://api.github.com/users/Yelp/followers","following_url":"https://api.github.com/users/Yelp/following{/other_user}","gists_url":"https://api.github.com/users/Yelp/gists{/gist_id}","starred_url":"https://api.github.com/users/Yelp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Yelp/subscriptions","organizations_url":"https://api.github.com/users/Yelp/orgs","repos_url":"https://api.github.com/users/Yelp/repos","events_url":"https://api.github.com/users/Yelp/events{/privacy}","received_events_url":"https://api.github.com/users/Yelp/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Yelp/paasta","description":"An open, distributed platform as a service","fork":false,"url":"https://api.github.com/repos/Yelp/paasta","forks_url":"https://api.github.com/repos/Yelp/paasta/forks","keys_url":"https://api.github.com/repos/Yelp/paasta/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Yelp/paasta/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Yelp/paasta/teams","hooks_url":"https://api.github.com/repos/Yelp/paasta/hooks","issue_events_url":"https://api.github.com/repos/Yelp/paasta/issues/events{/number}","events_url":"https://api.github.com/repos/Yelp/paasta/events","assignees_url":"https://api.github.com/repos/Yelp/paasta/assignees{/user}","branches_url":"https://api.github.com/repos/Yelp/paasta/branches{/branch}","tags_url":"https://api.github.com/repos/Yelp/paasta/tags","blobs_url":"https://api.github.com/repos/Yelp/paasta/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Yelp/paasta/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Yelp/paasta/git/refs{/sha}","trees_url":"https://api.github.com/repos/Yelp/paasta/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Yelp/paasta/statuses/{sha}","languages_url":"https://api.github.com/repos/Yelp/paasta/languages","stargazers_url":"https://api.github.com/repos/Yelp/paasta/stargazers","contributors_url":"https://api.github.com/repos/Yelp/paasta/contributors","subscribers_url":"https://api.github.com/repos/Yelp/paasta/subscribers","subscription_url":"https://api.github.com/repos/Yelp/paasta/subscription","commits_url":"https://api.github.com/repos/Yelp/paasta/commits{/sha}","git_commits_url":"https://api.github.com/repos/Yelp/paasta/git/commits{/sha}","comments_url":"https://api.github.com/repos/Yelp/paasta/comments{/number}","issue_comment_url":"https://api.github.com/repos/Yelp/paasta/issues/comments{/number}","contents_url":"https://api.github.com/repos/Yelp/paasta/contents/{+path}","compare_url":"https://api.github.com/repos/Yelp/paasta/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Yelp/paasta/merges","archive_url":"https://api.github.com/repos/Yelp/paasta/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Yelp/paasta/downloads","issues_url":"https://api.github.com/repos/Yelp/paasta/issues{/number}","pulls_url":"https://api.github.com/repos/Yelp/paasta/pulls{/number}","milestones_url":"https://api.github.com/repos/Yelp/paasta/milestones{/number}","notifications_url":"https://api.github.com/repos/Yelp/paasta/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Yelp/paasta/labels{/name}","releases_url":"https://api.github.com/repos/Yelp/paasta/releases{/id}","created_at":"2015-10-26T21:35:53Z","updated_at":"2015-11-17T01:51:41Z","pushed_at":"2015-11-17T03:17:56Z","git_url":"git://github.com/Yelp/paasta.git","ssh_url":"git@github.com:Yelp/paasta.git","clone_url":"https://github.com/Yelp/paasta.git","svn_url":"https://github.com/Yelp/paasta","homepage":"","size":6040,"stargazers_count":465,"watchers_count":465,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":25,"mirror_url":null,"open_issues_count":12,"forks":25,"open_issues":12,"watchers":465,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Yelp/paasta/pulls/53"},"html":{"href":"https://github.com/Yelp/paasta/pull/53"},"issue":{"href":"https://api.github.com/repos/Yelp/paasta/issues/53"},"comments":{"href":"https://api.github.com/repos/Yelp/paasta/issues/53/comments"},"review_comments":{"href":"https://api.github.com/repos/Yelp/paasta/pulls/53/comments"},"review_comment":{"href":"https://api.github.com/repos/Yelp/paasta/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Yelp/paasta/pulls/53/commits"},"statuses":{"href":"https://api.github.com/repos/Yelp/paasta/statuses/b5de366e993e28ef0b3aa879639e1459047d386b"}}}}