{"action":"created","comment":{"url":"https://api.github.com/repos/Metaswitch/clearwater-etcd-plugins/pulls/comments/78001790","id":78001790,"diff_hunk":"@@ -0,0 +1,46 @@\n+#!/bin/bash\n+\n+# Project Clearwater - IMS in the Cloud\n+# Copyright (C) 2016 Metaswitch Networks Ltd\n+#\n+# This program is free software: you can redistribute it and/or modify it\n+# under the terms of the GNU General Public License as published by the\n+# Free Software Foundation, either version 3 of the License, or (at your\n+# option) any later version, along with the \"Special Exception\" for use of\n+# the program along with SSL, set forth below. This program is distributed\n+# in the hope that it will be useful, but WITHOUT ANY WARRANTY;\n+# without even the implied warranty of MERCHANTABILITY or FITNESS FOR\n+# A PARTICULAR PURPOSE.  See the GNU General Public License for more\n+# details. You should have received a copy of the GNU General Public\n+# License along with this program.  If not, see\n+# <http://www.gnu.org/licenses/>.\n+#\n+# The author can be reached by email at clearwater@metaswitch.com or by\n+# post at Metaswitch Networks Ltd, 100 Church St, Enfield EN2 6BQ, UK\n+#\n+# Special Exception\n+# Metaswitch Networks Ltd  grants you permission to copy, modify,\n+# propagate, and distribute a work formed by combining OpenSSL with The\n+# Software, or a work derivative of such a combination, even if such\n+# copying, modification, propagation, or distribution would otherwise\n+# violate the terms of the GPL. You must comply with the GPL in all\n+# respects for all of the code used other than OpenSSL.\n+# \"OpenSSL\" means OpenSSL toolkit software distributed by the OpenSSL\n+# Project and licensed under the OpenSSL Licenses, or a work based on such\n+# software and licensed under the OpenSSL Licenses.\n+# \"OpenSSL Licenses\" means the OpenSSL License and Original SSLeay License\n+# under which the OpenSSL Project distributes the OpenSSL toolkit software,\n+# as those licenses appear in the file LICENSE-OPENSSL.\n+\n+set -ue\n+\n+local_site_name=site1\n+. /etc/clearwater/config\n+\n+if [ $# -ne 0 ]\n+then\n+  echo \"Usage: force_chronos_gr_restart_queue_state\"\n+  exit 1\n+fi\n+\n+/usr/share/clearwater/clearwater-queue-manager/env/bin/python /usr/share/clearwater/clearwater-queue-manager/scripts/force_queue_state.py \"${management_local_ip:-$local_ip}\" \"$local_site_name\" \"apply_chronos_gr_config\"","path":"chronos/scripts/force_chronos_gr_restart_queue_state","position":46,"original_position":46,"commit_id":"1a1df1ea3aca24987f6b0c5c5b2759798c29e7c0","original_commit_id":"70769f7873af0a055620f54f122747b547391f73","user":{"login":"richardwhiuk","id":346165,"avatar_url":"https://avatars.githubusercontent.com/u/346165?v=3","gravatar_id":"","url":"https://api.github.com/users/richardwhiuk","html_url":"https://github.com/richardwhiuk","followers_url":"https://api.github.com/users/richardwhiuk/followers","following_url":"https://api.github.com/users/richardwhiuk/following{/other_user}","gists_url":"https://api.github.com/users/richardwhiuk/gists{/gist_id}","starred_url":"https://api.github.com/users/richardwhiuk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/richardwhiuk/subscriptions","organizations_url":"https://api.github.com/users/richardwhiuk/orgs","repos_url":"https://api.github.com/users/richardwhiuk/repos","events_url":"https://api.github.com/users/richardwhiuk/events{/privacy}","received_events_url":"https://api.github.com/users/richardwhiuk/received_events","type":"User","site_admin":false},"body":"You can split long lines in bash by using a backslash at the end of the line:\r\n\r\n```bash\r\n/usr/share/clearwater/clearwater-queue-manager/env/bin/python \\\r\n  /usr/share/clearwater/clearwater-queue-manager/scripts/force_queue_state.py \\\r\n    \"${management_local_ip:-$local_ip}\" \\\r\n    \"$local_site_name\" \\\r\n    \"apply_chronos_gr_config\"\r\n```","created_at":"2016-09-08T13:10:22Z","updated_at":"2016-09-08T13:10:22Z","html_url":"https://github.com/Metaswitch/clearwater-etcd-plugins/pull/8#discussion_r78001790","pull_request_url":"https://api.github.com/repos/Metaswitch/clearwater-etcd-plugins/pulls/8","_links":{"self":{"href":"https://api.github.com/repos/Metaswitch/clearwater-etcd-plugins/pulls/comments/78001790"},"html":{"href":"https://github.com/Metaswitch/clearwater-etcd-plugins/pull/8#discussion_r78001790"},"pull_request":{"href":"https://api.github.com/repos/Metaswitch/clearwater-etcd-plugins/pulls/8"}}},"pull_request":{"url":"https://api.github.com/repos/Metaswitch/clearwater-etcd-plugins/pulls/8","id":84465003,"html_url":"https://github.com/Metaswitch/clearwater-etcd-plugins/pull/8","diff_url":"https://github.com/Metaswitch/clearwater-etcd-plugins/pull/8.diff","patch_url":"https://github.com/Metaswitch/clearwater-etcd-plugins/pull/8.patch","issue_url":"https://api.github.com/repos/Metaswitch/clearwater-etcd-plugins/issues/8","number":8,"state":"open","locked":false,"title":"[Reviewer: Richard] Add Chronos config plugins and scripts","user":{"login":"eleanor-merry","id":5425325,"avatar_url":"https://avatars.githubusercontent.com/u/5425325?v=3","gravatar_id":"","url":"https://api.github.com/users/eleanor-merry","html_url":"https://github.com/eleanor-merry","followers_url":"https://api.github.com/users/eleanor-merry/followers","following_url":"https://api.github.com/users/eleanor-merry/following{/other_user}","gists_url":"https://api.github.com/users/eleanor-merry/gists{/gist_id}","starred_url":"https://api.github.com/users/eleanor-merry/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eleanor-merry/subscriptions","organizations_url":"https://api.github.com/users/eleanor-merry/orgs","repos_url":"https://api.github.com/users/eleanor-merry/repos","events_url":"https://api.github.com/users/eleanor-merry/events{/privacy}","received_events_url":"https://api.github.com/users/eleanor-merry/received_events","type":"User","site_admin":false},"body":"Adds the Chronos config plugins and scripts.\r\n\r\nTested in UTs and live","created_at":"2016-09-08T12:06:52Z","updated_at":"2016-09-08T13:10:22Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e56702814d459ccebf959fcf92d4dd6ce36c67fa","assignee":{"login":"richardwhiuk","id":346165,"avatar_url":"https://avatars.githubusercontent.com/u/346165?v=3","gravatar_id":"","url":"https://api.github.com/users/richardwhiuk","html_url":"https://github.com/richardwhiuk","followers_url":"https://api.github.com/users/richardwhiuk/followers","following_url":"https://api.github.com/users/richardwhiuk/following{/other_user}","gists_url":"https://api.github.com/users/richardwhiuk/gists{/gist_id}","starred_url":"https://api.github.com/users/richardwhiuk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/richardwhiuk/subscriptions","organizations_url":"https://api.github.com/users/richardwhiuk/orgs","repos_url":"https://api.github.com/users/richardwhiuk/repos","events_url":"https://api.github.com/users/richardwhiuk/events{/privacy}","received_events_url":"https://api.github.com/users/richardwhiuk/received_events","type":"User","site_admin":false},"assignees":[{"login":"richardwhiuk","id":346165,"avatar_url":"https://avatars.githubusercontent.com/u/346165?v=3","gravatar_id":"","url":"https://api.github.com/users/richardwhiuk","html_url":"https://github.com/richardwhiuk","followers_url":"https://api.github.com/users/richardwhiuk/followers","following_url":"https://api.github.com/users/richardwhiuk/following{/other_user}","gists_url":"https://api.github.com/users/richardwhiuk/gists{/gist_id}","starred_url":"https://api.github.com/users/richardwhiuk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/richardwhiuk/subscriptions","organizations_url":"https://api.github.com/users/richardwhiuk/orgs","repos_url":"https://api.github.com/users/richardwhiuk/repos","events_url":"https://api.github.com/users/richardwhiuk/events{/privacy}","received_events_url":"https://api.github.com/users/richardwhiuk/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/Metaswitch/clearwater-etcd-plugins/pulls/8/commits","review_comments_url":"https://api.github.com/repos/Metaswitch/clearwater-etcd-plugins/pulls/8/comments","review_comment_url":"https://api.github.com/repos/Metaswitch/clearwater-etcd-plugins/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Metaswitch/clearwater-etcd-plugins/issues/8/comments","statuses_url":"https://api.github.com/repos/Metaswitch/clearwater-etcd-plugins/statuses/1a1df1ea3aca24987f6b0c5c5b2759798c29e7c0","head":{"label":"Metaswitch:chronos_config_plugins","ref":"chronos_config_plugins","sha":"1a1df1ea3aca24987f6b0c5c5b2759798c29e7c0","user":{"login":"Metaswitch","id":453759,"avatar_url":"https://avatars.githubusercontent.com/u/453759?v=3","gravatar_id":"","url":"https://api.github.com/users/Metaswitch","html_url":"https://github.com/Metaswitch","followers_url":"https://api.github.com/users/Metaswitch/followers","following_url":"https://api.github.com/users/Metaswitch/following{/other_user}","gists_url":"https://api.github.com/users/Metaswitch/gists{/gist_id}","starred_url":"https://api.github.com/users/Metaswitch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Metaswitch/subscriptions","organizations_url":"https://api.github.com/users/Metaswitch/orgs","repos_url":"https://api.github.com/users/Metaswitch/repos","events_url":"https://api.github.com/users/Metaswitch/events{/privacy}","received_events_url":"https://api.github.com/users/Metaswitch/received_events","type":"Organization","site_admin":false},"repo":{"id":66262076,"name":"clearwater-etcd-plugins","full_name":"Metaswitch/clearwater-etcd-plugins","owner":{"login":"Metaswitch","id":453759,"avatar_url":"https://avatars.githubusercontent.com/u/453759?v=3","gravatar_id":"","url":"https://api.github.com/users/Metaswitch","html_url":"https://github.com/Metaswitch","followers_url":"https://api.github.com/users/Metaswitch/followers","following_url":"https://api.github.com/users/Metaswitch/following{/other_user}","gists_url":"https://api.github.com/users/Metaswitch/gists{/gist_id}","starred_url":"https://api.github.com/users/Metaswitch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Metaswitch/subscriptions","organizations_url":"https://api.github.com/users/Metaswitch/orgs","repos_url":"https://api.github.com/users/Metaswitch/repos","events_url":"https://api.github.com/users/Metaswitch/events{/privacy}","received_events_url":"https://api.github.com/users/Metaswitch/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Metaswitch/clearwater-etcd-plugins","description":"Plugins for clearwater-etcd","fork":false,"url":"https://api.github.com/repos/Metaswitch/clearwater-etcd-plugins","forks_url":"https://api.github.com/repos/Metaswitch/clearwater-etcd-plugins/forks","keys_url":"https://api.github.com/repos/Metaswitch/clearwater-etcd-plugins/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Metaswitch/clearwater-etcd-plugins/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Metaswitch/clearwater-etcd-plugins/teams","hooks_url":"https://api.github.com/repos/Metaswitch/clearwater-etcd-plugins/hooks","issue_events_url":"https://api.github.com/repos/Metaswitch/clearwater-etcd-plugins/issues/events{/number}","events_url":"https://api.github.com/repos/Metaswitch/clearwater-etcd-plugins/events","assignees_url":"https://api.github.com/repos/Metaswitch/clearwater-etcd-plugins/assignees{/user}","branches_url":"https://api.github.com/repos/Metaswitch/clearwater-etcd-plugins/branches{/branch}","tags_url":"https://api.github.com/repos/Metaswitch/clearwater-etcd-plugins/tags","blobs_url":"https://api.github.com/repos/Metaswitch/clearwater-etcd-plugins/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Metaswitch/clearwater-etcd-plugins/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Metaswitch/clearwater-etcd-plugins/git/refs{/sha}","trees_url":"https://api.github.com/repos/Metaswitch/clearwater-etcd-plugins/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Metaswitch/clearwater-etcd-plugins/statuses/{sha}","languages_url":"https://api.github.com/repos/Metaswitch/clearwater-etcd-plugins/languages","stargazers_url":"https://api.github.com/repos/Metaswitch/clearwater-etcd-plugins/stargazers","contributors_url":"https://api.github.com/repos/Metaswitch/clearwater-etcd-plugins/contributors","subscribers_url":"https://api.github.com/repos/Metaswitch/clearwater-etcd-plugins/subscribers","subscription_url":"https://api.github.com/repos/Metaswitch/clearwater-etcd-plugins/subscription","commits_url":"https://api.github.com/repos/Metaswitch/clearwater-etcd-plugins/commits{/sha}","git_commits_url":"https://api.github.com/repos/Metaswitch/clearwater-etcd-plugins/git/commits{/sha}","comments_url":"https://api.github.com/repos/Metaswitch/clearwater-etcd-plugins/comments{/number}","issue_comment_url":"https://api.github.com/repos/Metaswitch/clearwater-etcd-plugins/issues/comments{/number}","contents_url":"https://api.github.com/repos/Metaswitch/clearwater-etcd-plugins/contents/{+path}","compare_url":"https://api.github.com/repos/Metaswitch/clearwater-etcd-plugins/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Metaswitch/clearwater-etcd-plugins/merges","archive_url":"https://api.github.com/repos/Metaswitch/clearwater-etcd-plugins/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Metaswitch/clearwater-etcd-plugins/downloads","issues_url":"https://api.github.com/repos/Metaswitch/clearwater-etcd-plugins/issues{/number}","pulls_url":"https://api.github.com/repos/Metaswitch/clearwater-etcd-plugins/pulls{/number}","milestones_url":"https://api.github.com/repos/Metaswitch/clearwater-etcd-plugins/milestones{/number}","notifications_url":"https://api.github.com/repos/Metaswitch/clearwater-etcd-plugins/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Metaswitch/clearwater-etcd-plugins/labels{/name}","releases_url":"https://api.github.com/repos/Metaswitch/clearwater-etcd-plugins/releases{/id}","deployments_url":"https://api.github.com/repos/Metaswitch/clearwater-etcd-plugins/deployments","created_at":"2016-08-22T10:15:40Z","updated_at":"2016-08-22T12:09:53Z","pushed_at":"2016-09-08T13:09:33Z","git_url":"git://github.com/Metaswitch/clearwater-etcd-plugins.git","ssh_url":"git@github.com:Metaswitch/clearwater-etcd-plugins.git","clone_url":"https://github.com/Metaswitch/clearwater-etcd-plugins.git","svn_url":"https://github.com/Metaswitch/clearwater-etcd-plugins","homepage":null,"size":64,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":3,"forks":0,"open_issues":3,"watchers":0,"default_branch":"master"}},"base":{"label":"Metaswitch:master","ref":"master","sha":"171537e59df83bc8a6699a0c5f41b7486831c9e0","user":{"login":"Metaswitch","id":453759,"avatar_url":"https://avatars.githubusercontent.com/u/453759?v=3","gravatar_id":"","url":"https://api.github.com/users/Metaswitch","html_url":"https://github.com/Metaswitch","followers_url":"https://api.github.com/users/Metaswitch/followers","following_url":"https://api.github.com/users/Metaswitch/following{/other_user}","gists_url":"https://api.github.com/users/Metaswitch/gists{/gist_id}","starred_url":"https://api.github.com/users/Metaswitch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Metaswitch/subscriptions","organizations_url":"https://api.github.com/users/Metaswitch/orgs","repos_url":"https://api.github.com/users/Metaswitch/repos","events_url":"https://api.github.com/users/Metaswitch/events{/privacy}","received_events_url":"https://api.github.com/users/Metaswitch/received_events","type":"Organization","site_admin":false},"repo":{"id":66262076,"name":"clearwater-etcd-plugins","full_name":"Metaswitch/clearwater-etcd-plugins","owner":{"login":"Metaswitch","id":453759,"avatar_url":"https://avatars.githubusercontent.com/u/453759?v=3","gravatar_id":"","url":"https://api.github.com/users/Metaswitch","html_url":"https://github.com/Metaswitch","followers_url":"https://api.github.com/users/Metaswitch/followers","following_url":"https://api.github.com/users/Metaswitch/following{/other_user}","gists_url":"https://api.github.com/users/Metaswitch/gists{/gist_id}","starred_url":"https://api.github.com/users/Metaswitch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Metaswitch/subscriptions","organizations_url":"https://api.github.com/users/Metaswitch/orgs","repos_url":"https://api.github.com/users/Metaswitch/repos","events_url":"https://api.github.com/users/Metaswitch/events{/privacy}","received_events_url":"https://api.github.com/users/Metaswitch/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Metaswitch/clearwater-etcd-plugins","description":"Plugins for clearwater-etcd","fork":false,"url":"https://api.github.com/repos/Metaswitch/clearwater-etcd-plugins","forks_url":"https://api.github.com/repos/Metaswitch/clearwater-etcd-plugins/forks","keys_url":"https://api.github.com/repos/Metaswitch/clearwater-etcd-plugins/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Metaswitch/clearwater-etcd-plugins/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Metaswitch/clearwater-etcd-plugins/teams","hooks_url":"https://api.github.com/repos/Metaswitch/clearwater-etcd-plugins/hooks","issue_events_url":"https://api.github.com/repos/Metaswitch/clearwater-etcd-plugins/issues/events{/number}","events_url":"https://api.github.com/repos/Metaswitch/clearwater-etcd-plugins/events","assignees_url":"https://api.github.com/repos/Metaswitch/clearwater-etcd-plugins/assignees{/user}","branches_url":"https://api.github.com/repos/Metaswitch/clearwater-etcd-plugins/branches{/branch}","tags_url":"https://api.github.com/repos/Metaswitch/clearwater-etcd-plugins/tags","blobs_url":"https://api.github.com/repos/Metaswitch/clearwater-etcd-plugins/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Metaswitch/clearwater-etcd-plugins/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Metaswitch/clearwater-etcd-plugins/git/refs{/sha}","trees_url":"https://api.github.com/repos/Metaswitch/clearwater-etcd-plugins/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Metaswitch/clearwater-etcd-plugins/statuses/{sha}","languages_url":"https://api.github.com/repos/Metaswitch/clearwater-etcd-plugins/languages","stargazers_url":"https://api.github.com/repos/Metaswitch/clearwater-etcd-plugins/stargazers","contributors_url":"https://api.github.com/repos/Metaswitch/clearwater-etcd-plugins/contributors","subscribers_url":"https://api.github.com/repos/Metaswitch/clearwater-etcd-plugins/subscribers","subscription_url":"https://api.github.com/repos/Metaswitch/clearwater-etcd-plugins/subscription","commits_url":"https://api.github.com/repos/Metaswitch/clearwater-etcd-plugins/commits{/sha}","git_commits_url":"https://api.github.com/repos/Metaswitch/clearwater-etcd-plugins/git/commits{/sha}","comments_url":"https://api.github.com/repos/Metaswitch/clearwater-etcd-plugins/comments{/number}","issue_comment_url":"https://api.github.com/repos/Metaswitch/clearwater-etcd-plugins/issues/comments{/number}","contents_url":"https://api.github.com/repos/Metaswitch/clearwater-etcd-plugins/contents/{+path}","compare_url":"https://api.github.com/repos/Metaswitch/clearwater-etcd-plugins/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Metaswitch/clearwater-etcd-plugins/merges","archive_url":"https://api.github.com/repos/Metaswitch/clearwater-etcd-plugins/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Metaswitch/clearwater-etcd-plugins/downloads","issues_url":"https://api.github.com/repos/Metaswitch/clearwater-etcd-plugins/issues{/number}","pulls_url":"https://api.github.com/repos/Metaswitch/clearwater-etcd-plugins/pulls{/number}","milestones_url":"https://api.github.com/repos/Metaswitch/clearwater-etcd-plugins/milestones{/number}","notifications_url":"https://api.github.com/repos/Metaswitch/clearwater-etcd-plugins/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Metaswitch/clearwater-etcd-plugins/labels{/name}","releases_url":"https://api.github.com/repos/Metaswitch/clearwater-etcd-plugins/releases{/id}","deployments_url":"https://api.github.com/repos/Metaswitch/clearwater-etcd-plugins/deployments","created_at":"2016-08-22T10:15:40Z","updated_at":"2016-08-22T12:09:53Z","pushed_at":"2016-09-08T13:09:33Z","git_url":"git://github.com/Metaswitch/clearwater-etcd-plugins.git","ssh_url":"git@github.com:Metaswitch/clearwater-etcd-plugins.git","clone_url":"https://github.com/Metaswitch/clearwater-etcd-plugins.git","svn_url":"https://github.com/Metaswitch/clearwater-etcd-plugins","homepage":null,"size":64,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":3,"forks":0,"open_issues":3,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Metaswitch/clearwater-etcd-plugins/pulls/8"},"html":{"href":"https://github.com/Metaswitch/clearwater-etcd-plugins/pull/8"},"issue":{"href":"https://api.github.com/repos/Metaswitch/clearwater-etcd-plugins/issues/8"},"comments":{"href":"https://api.github.com/repos/Metaswitch/clearwater-etcd-plugins/issues/8/comments"},"review_comments":{"href":"https://api.github.com/repos/Metaswitch/clearwater-etcd-plugins/pulls/8/comments"},"review_comment":{"href":"https://api.github.com/repos/Metaswitch/clearwater-etcd-plugins/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Metaswitch/clearwater-etcd-plugins/pulls/8/commits"},"statuses":{"href":"https://api.github.com/repos/Metaswitch/clearwater-etcd-plugins/statuses/1a1df1ea3aca24987f6b0c5c5b2759798c29e7c0"}}}}
{"actor":{"display_login":"richardwhiuk"}}