{"action":"created","comment":{"url":"https://api.github.com/repos/Yelp/paasta/pulls/comments/56206443","id":56206443,"diff_hunk":"@@ -145,17 +156,23 @@ def issue_state_change_for_service(service_config, force_bounce, desired_state):\n def paasta_start_or_stop(args, desired_state):\n     \"\"\"Requests a change of state to start or stop given branches of a service.\"\"\"\n     instance = args.instance\n-    cluster = args.cluster\n+    clusters = args.clusters\n     soa_dir = args.soa_dir\n     service = figure_out_service_name(args=args, soa_dir=soa_dir)\n \n-    service_config = get_instance_config(\n-        service=service,\n-        cluster=cluster,\n-        instance=instance,\n-        soa_dir=soa_dir,\n-        load_deployments=False,\n-    )\n+    if args.clusters and args.cluster:\n+        print \"--cluster and --clusters cannot be used at the same time\"\n+        return 1\n+\n+    if args.clusters is not None:\n+        clusters = args.clusters.split(\",\")\n+    else:\n+        clusters = list_clusters(service)\n+\n+    if args.cluster is not None:","path":"paasta_tools/cli/cmds/start_stop_restart.py","position":76,"original_position":76,"commit_id":"327c8f8905a078762743b6a692cb5132b95e8c42","original_commit_id":"327c8f8905a078762743b6a692cb5132b95e8c42","user":{"login":"solarkennedy","id":370205,"avatar_url":"https://avatars.githubusercontent.com/u/370205?v=3","gravatar_id":"","url":"https://api.github.com/users/solarkennedy","html_url":"https://github.com/solarkennedy","followers_url":"https://api.github.com/users/solarkennedy/followers","following_url":"https://api.github.com/users/solarkennedy/following{/other_user}","gists_url":"https://api.github.com/users/solarkennedy/gists{/gist_id}","starred_url":"https://api.github.com/users/solarkennedy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/solarkennedy/subscriptions","organizations_url":"https://api.github.com/users/solarkennedy/orgs","repos_url":"https://api.github.com/users/solarkennedy/repos","events_url":"https://api.github.com/users/solarkennedy/events{/privacy}","received_events_url":"https://api.github.com/users/solarkennedy/received_events","type":"User","site_admin":false},"body":"We don't need this, just stick with `--clusters` and --cluster will still work","created_at":"2016-03-15T17:36:41Z","updated_at":"2016-03-15T17:36:41Z","html_url":"https://github.com/Yelp/paasta/pull/328#discussion_r56206443","pull_request_url":"https://api.github.com/repos/Yelp/paasta/pulls/328","_links":{"self":{"href":"https://api.github.com/repos/Yelp/paasta/pulls/comments/56206443"},"html":{"href":"https://github.com/Yelp/paasta/pull/328#discussion_r56206443"},"pull_request":{"href":"https://api.github.com/repos/Yelp/paasta/pulls/328"}}},"pull_request":{"url":"https://api.github.com/repos/Yelp/paasta/pulls/328","id":62821190,"html_url":"https://github.com/Yelp/paasta/pull/328","diff_url":"https://github.com/Yelp/paasta/pull/328.diff","patch_url":"https://github.com/Yelp/paasta/pull/328.patch","issue_url":"https://api.github.com/repos/Yelp/paasta/issues/328","number":328,"state":"open","locked":false,"title":"Allow 'paasta re.start -c' to use a list of clusters","user":{"login":"nosmo","id":68673,"avatar_url":"https://avatars.githubusercontent.com/u/68673?v=3","gravatar_id":"","url":"https://api.github.com/users/nosmo","html_url":"https://github.com/nosmo","followers_url":"https://api.github.com/users/nosmo/followers","following_url":"https://api.github.com/users/nosmo/following{/other_user}","gists_url":"https://api.github.com/users/nosmo/gists{/gist_id}","starred_url":"https://api.github.com/users/nosmo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nosmo/subscriptions","organizations_url":"https://api.github.com/users/nosmo/orgs","repos_url":"https://api.github.com/users/nosmo/repos","events_url":"https://api.github.com/users/nosmo/events{/privacy}","received_events_url":"https://api.github.com/users/nosmo/received_events","type":"User","site_admin":false},"body":"Currently paasta restart -c accepts only one cluster. There has been an internal request to allow -c to use a list of clusters. \r\n\r\nThere is some inconsistency around how this is currently implemented, with emergency_scale, emergency_restart, emergency_stop, emergency_start, restart and local_run using ```--cluster```, and logs, status and metastatus supporting ```--clusters```. ","created_at":"2016-03-14T21:34:06Z","updated_at":"2016-03-15T17:36:41Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b7b535239c050bc8fab2c0cf63b9a9f4f7c123d1","assignee":{"login":"nosmo","id":68673,"avatar_url":"https://avatars.githubusercontent.com/u/68673?v=3","gravatar_id":"","url":"https://api.github.com/users/nosmo","html_url":"https://github.com/nosmo","followers_url":"https://api.github.com/users/nosmo/followers","following_url":"https://api.github.com/users/nosmo/following{/other_user}","gists_url":"https://api.github.com/users/nosmo/gists{/gist_id}","starred_url":"https://api.github.com/users/nosmo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nosmo/subscriptions","organizations_url":"https://api.github.com/users/nosmo/orgs","repos_url":"https://api.github.com/users/nosmo/repos","events_url":"https://api.github.com/users/nosmo/events{/privacy}","received_events_url":"https://api.github.com/users/nosmo/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/Yelp/paasta/pulls/328/commits","review_comments_url":"https://api.github.com/repos/Yelp/paasta/pulls/328/comments","review_comment_url":"https://api.github.com/repos/Yelp/paasta/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Yelp/paasta/issues/328/comments","statuses_url":"https://api.github.com/repos/Yelp/paasta/statuses/327c8f8905a078762743b6a692cb5132b95e8c42","head":{"label":"Yelp:restart_command_consistency","ref":"restart_command_consistency","sha":"327c8f8905a078762743b6a692cb5132b95e8c42","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}","deployments_url":"https://api.github.com/repos/Yelp/paasta/deployments","created_at":"2015-10-26T21:35:53Z","updated_at":"2016-03-15T12:58:43Z","pushed_at":"2016-03-15T17:21:32Z","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":7335,"stargazers_count":764,"watchers_count":764,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":61,"mirror_url":null,"open_issues_count":27,"forks":61,"open_issues":27,"watchers":764,"default_branch":"master"}},"base":{"label":"Yelp:master","ref":"master","sha":"282c44a1f6c51bc6f40cc24d8566c8336db31fa6","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}","deployments_url":"https://api.github.com/repos/Yelp/paasta/deployments","created_at":"2015-10-26T21:35:53Z","updated_at":"2016-03-15T12:58:43Z","pushed_at":"2016-03-15T17:21:32Z","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":7335,"stargazers_count":764,"watchers_count":764,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":61,"mirror_url":null,"open_issues_count":27,"forks":61,"open_issues":27,"watchers":764,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Yelp/paasta/pulls/328"},"html":{"href":"https://github.com/Yelp/paasta/pull/328"},"issue":{"href":"https://api.github.com/repos/Yelp/paasta/issues/328"},"comments":{"href":"https://api.github.com/repos/Yelp/paasta/issues/328/comments"},"review_comments":{"href":"https://api.github.com/repos/Yelp/paasta/pulls/328/comments"},"review_comment":{"href":"https://api.github.com/repos/Yelp/paasta/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Yelp/paasta/pulls/328/commits"},"statuses":{"href":"https://api.github.com/repos/Yelp/paasta/statuses/327c8f8905a078762743b6a692cb5132b95e8c42"}}}}