{"action":"created","comment":{"url":"https://api.github.com/repos/SatelliteQE/automation-tools/pulls/comments/60429189","id":60429189,"diff_hunk":"@@ -543,8 +545,9 @@ def setup_capsule_content(\n     )\n     hammer_content_view_publish(content_view_name, organization_id)\n     product_id = run(\n-        'hammer --csv subscription list --organization-id=\"{}\" '\n-        '--search=\"name=\\\\\"{}\\\\\"\" | cut  -d \",\" -f 8 | grep -vi \"ID\"',\n+        'hammer --csv subscription list --organization-id=\"{0}\" '\n+        '--search=\"name=\\\\\"{1}\\\\\"\" | awk -F, \"NR>1{print \\$8}\"'\n+        .format(organization_id, product_name),","path":"automation_tools/satellite6/capsule.py","position":null,"original_position":207,"commit_id":"af51dd97571429f2a900ef614ad5a0eea9768718","original_commit_id":"632acf8907f69976b615e6b1215bcf8f9a048afb","user":{"login":"elyezer","id":48132,"avatar_url":"https://avatars.githubusercontent.com/u/48132?v=3","gravatar_id":"","url":"https://api.github.com/users/elyezer","html_url":"https://github.com/elyezer","followers_url":"https://api.github.com/users/elyezer/followers","following_url":"https://api.github.com/users/elyezer/following{/other_user}","gists_url":"https://api.github.com/users/elyezer/gists{/gist_id}","starred_url":"https://api.github.com/users/elyezer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elyezer/subscriptions","organizations_url":"https://api.github.com/users/elyezer/orgs","repos_url":"https://api.github.com/users/elyezer/repos","events_url":"https://api.github.com/users/elyezer/events{/privacy}","received_events_url":"https://api.github.com/users/elyezer/received_events","type":"User","site_admin":false},"body":":open_mouth: some day I should learn AWK for real.","created_at":"2016-04-20T15:24:58Z","updated_at":"2016-04-20T15:24:58Z","html_url":"https://github.com/SatelliteQE/automation-tools/pull/321#discussion_r60429189","pull_request_url":"https://api.github.com/repos/SatelliteQE/automation-tools/pulls/321","_links":{"self":{"href":"https://api.github.com/repos/SatelliteQE/automation-tools/pulls/comments/60429189"},"html":{"href":"https://github.com/SatelliteQE/automation-tools/pull/321#discussion_r60429189"},"pull_request":{"href":"https://api.github.com/repos/SatelliteQE/automation-tools/pulls/321"}}},"pull_request":{"url":"https://api.github.com/repos/SatelliteQE/automation-tools/pulls/321","id":67202587,"html_url":"https://github.com/SatelliteQE/automation-tools/pull/321","diff_url":"https://github.com/SatelliteQE/automation-tools/pull/321.diff","patch_url":"https://github.com/SatelliteQE/automation-tools/pull/321.patch","issue_url":"https://api.github.com/repos/SatelliteQE/automation-tools/issues/321","number":321,"state":"open","locked":false,"title":"Retain python2.6 compatibility for automation-tools","user":{"login":"lpramuk","id":7138254,"avatar_url":"https://avatars.githubusercontent.com/u/7138254?v=3","gravatar_id":"","url":"https://api.github.com/users/lpramuk","html_url":"https://github.com/lpramuk","followers_url":"https://api.github.com/users/lpramuk/followers","following_url":"https://api.github.com/users/lpramuk/following{/other_user}","gists_url":"https://api.github.com/users/lpramuk/gists{/gist_id}","starred_url":"https://api.github.com/users/lpramuk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lpramuk/subscriptions","organizations_url":"https://api.github.com/users/lpramuk/orgs","repos_url":"https://api.github.com/users/lpramuk/repos","events_url":"https://api.github.com/users/lpramuk/events{/privacy}","received_events_url":"https://api.github.com/users/lpramuk/received_events","type":"User","site_admin":false},"body":"Retain python2.6 compatibility for automation-tools\r\n\r\n- added index numbers in .format() (py26)\r\n- fixed small typo in capsule.py\r\n- fixed missing .format() in capsule.py\r\n\r\n(Fixes #320)","created_at":"2016-04-20T15:00:08Z","updated_at":"2016-04-20T15:24:58Z","closed_at":null,"merged_at":null,"merge_commit_sha":"233f9c1d97e76601c04098a32cf9a8d104df5f1a","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/SatelliteQE/automation-tools/pulls/321/commits","review_comments_url":"https://api.github.com/repos/SatelliteQE/automation-tools/pulls/321/comments","review_comment_url":"https://api.github.com/repos/SatelliteQE/automation-tools/pulls/comments{/number}","comments_url":"https://api.github.com/repos/SatelliteQE/automation-tools/issues/321/comments","statuses_url":"https://api.github.com/repos/SatelliteQE/automation-tools/statuses/af51dd97571429f2a900ef614ad5a0eea9768718","head":{"label":"lpramuk:python26_compat","ref":"python26_compat","sha":"af51dd97571429f2a900ef614ad5a0eea9768718","user":{"login":"lpramuk","id":7138254,"avatar_url":"https://avatars.githubusercontent.com/u/7138254?v=3","gravatar_id":"","url":"https://api.github.com/users/lpramuk","html_url":"https://github.com/lpramuk","followers_url":"https://api.github.com/users/lpramuk/followers","following_url":"https://api.github.com/users/lpramuk/following{/other_user}","gists_url":"https://api.github.com/users/lpramuk/gists{/gist_id}","starred_url":"https://api.github.com/users/lpramuk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lpramuk/subscriptions","organizations_url":"https://api.github.com/users/lpramuk/orgs","repos_url":"https://api.github.com/users/lpramuk/repos","events_url":"https://api.github.com/users/lpramuk/events{/privacy}","received_events_url":"https://api.github.com/users/lpramuk/received_events","type":"User","site_admin":false},"repo":{"id":34055825,"name":"automation-tools","full_name":"lpramuk/automation-tools","owner":{"login":"lpramuk","id":7138254,"avatar_url":"https://avatars.githubusercontent.com/u/7138254?v=3","gravatar_id":"","url":"https://api.github.com/users/lpramuk","html_url":"https://github.com/lpramuk","followers_url":"https://api.github.com/users/lpramuk/followers","following_url":"https://api.github.com/users/lpramuk/following{/other_user}","gists_url":"https://api.github.com/users/lpramuk/gists{/gist_id}","starred_url":"https://api.github.com/users/lpramuk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lpramuk/subscriptions","organizations_url":"https://api.github.com/users/lpramuk/orgs","repos_url":"https://api.github.com/users/lpramuk/repos","events_url":"https://api.github.com/users/lpramuk/events{/privacy}","received_events_url":"https://api.github.com/users/lpramuk/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/lpramuk/automation-tools","description":"A set of tools to help automating testing Foreman with Robottelo (https://github.com/SatelliteQE/robottelo)","fork":true,"url":"https://api.github.com/repos/lpramuk/automation-tools","forks_url":"https://api.github.com/repos/lpramuk/automation-tools/forks","keys_url":"https://api.github.com/repos/lpramuk/automation-tools/keys{/key_id}","collaborators_url":"https://api.github.com/repos/lpramuk/automation-tools/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/lpramuk/automation-tools/teams","hooks_url":"https://api.github.com/repos/lpramuk/automation-tools/hooks","issue_events_url":"https://api.github.com/repos/lpramuk/automation-tools/issues/events{/number}","events_url":"https://api.github.com/repos/lpramuk/automation-tools/events","assignees_url":"https://api.github.com/repos/lpramuk/automation-tools/assignees{/user}","branches_url":"https://api.github.com/repos/lpramuk/automation-tools/branches{/branch}","tags_url":"https://api.github.com/repos/lpramuk/automation-tools/tags","blobs_url":"https://api.github.com/repos/lpramuk/automation-tools/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/lpramuk/automation-tools/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/lpramuk/automation-tools/git/refs{/sha}","trees_url":"https://api.github.com/repos/lpramuk/automation-tools/git/trees{/sha}","statuses_url":"https://api.github.com/repos/lpramuk/automation-tools/statuses/{sha}","languages_url":"https://api.github.com/repos/lpramuk/automation-tools/languages","stargazers_url":"https://api.github.com/repos/lpramuk/automation-tools/stargazers","contributors_url":"https://api.github.com/repos/lpramuk/automation-tools/contributors","subscribers_url":"https://api.github.com/repos/lpramuk/automation-tools/subscribers","subscription_url":"https://api.github.com/repos/lpramuk/automation-tools/subscription","commits_url":"https://api.github.com/repos/lpramuk/automation-tools/commits{/sha}","git_commits_url":"https://api.github.com/repos/lpramuk/automation-tools/git/commits{/sha}","comments_url":"https://api.github.com/repos/lpramuk/automation-tools/comments{/number}","issue_comment_url":"https://api.github.com/repos/lpramuk/automation-tools/issues/comments{/number}","contents_url":"https://api.github.com/repos/lpramuk/automation-tools/contents/{+path}","compare_url":"https://api.github.com/repos/lpramuk/automation-tools/compare/{base}...{head}","merges_url":"https://api.github.com/repos/lpramuk/automation-tools/merges","archive_url":"https://api.github.com/repos/lpramuk/automation-tools/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/lpramuk/automation-tools/downloads","issues_url":"https://api.github.com/repos/lpramuk/automation-tools/issues{/number}","pulls_url":"https://api.github.com/repos/lpramuk/automation-tools/pulls{/number}","milestones_url":"https://api.github.com/repos/lpramuk/automation-tools/milestones{/number}","notifications_url":"https://api.github.com/repos/lpramuk/automation-tools/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/lpramuk/automation-tools/labels{/name}","releases_url":"https://api.github.com/repos/lpramuk/automation-tools/releases{/id}","deployments_url":"https://api.github.com/repos/lpramuk/automation-tools/deployments","created_at":"2015-04-16T12:57:42Z","updated_at":"2015-04-20T13:37:15Z","pushed_at":"2016-04-20T15:14:02Z","git_url":"git://github.com/lpramuk/automation-tools.git","ssh_url":"git@github.com:lpramuk/automation-tools.git","clone_url":"https://github.com/lpramuk/automation-tools.git","svn_url":"https://github.com/lpramuk/automation-tools","homepage":"","size":633,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"SatelliteQE:master","ref":"master","sha":"60a39113724d33b61a090a00736a2123b3540caf","user":{"login":"SatelliteQE","id":8754276,"avatar_url":"https://avatars.githubusercontent.com/u/8754276?v=3","gravatar_id":"","url":"https://api.github.com/users/SatelliteQE","html_url":"https://github.com/SatelliteQE","followers_url":"https://api.github.com/users/SatelliteQE/followers","following_url":"https://api.github.com/users/SatelliteQE/following{/other_user}","gists_url":"https://api.github.com/users/SatelliteQE/gists{/gist_id}","starred_url":"https://api.github.com/users/SatelliteQE/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SatelliteQE/subscriptions","organizations_url":"https://api.github.com/users/SatelliteQE/orgs","repos_url":"https://api.github.com/users/SatelliteQE/repos","events_url":"https://api.github.com/users/SatelliteQE/events{/privacy}","received_events_url":"https://api.github.com/users/SatelliteQE/received_events","type":"Organization","site_admin":false},"repo":{"id":22513327,"name":"automation-tools","full_name":"SatelliteQE/automation-tools","owner":{"login":"SatelliteQE","id":8754276,"avatar_url":"https://avatars.githubusercontent.com/u/8754276?v=3","gravatar_id":"","url":"https://api.github.com/users/SatelliteQE","html_url":"https://github.com/SatelliteQE","followers_url":"https://api.github.com/users/SatelliteQE/followers","following_url":"https://api.github.com/users/SatelliteQE/following{/other_user}","gists_url":"https://api.github.com/users/SatelliteQE/gists{/gist_id}","starred_url":"https://api.github.com/users/SatelliteQE/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SatelliteQE/subscriptions","organizations_url":"https://api.github.com/users/SatelliteQE/orgs","repos_url":"https://api.github.com/users/SatelliteQE/repos","events_url":"https://api.github.com/users/SatelliteQE/events{/privacy}","received_events_url":"https://api.github.com/users/SatelliteQE/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/SatelliteQE/automation-tools","description":"A set of tools to help automating testing Foreman with Robottelo (https://github.com/SatelliteQE/robottelo)","fork":false,"url":"https://api.github.com/repos/SatelliteQE/automation-tools","forks_url":"https://api.github.com/repos/SatelliteQE/automation-tools/forks","keys_url":"https://api.github.com/repos/SatelliteQE/automation-tools/keys{/key_id}","collaborators_url":"https://api.github.com/repos/SatelliteQE/automation-tools/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/SatelliteQE/automation-tools/teams","hooks_url":"https://api.github.com/repos/SatelliteQE/automation-tools/hooks","issue_events_url":"https://api.github.com/repos/SatelliteQE/automation-tools/issues/events{/number}","events_url":"https://api.github.com/repos/SatelliteQE/automation-tools/events","assignees_url":"https://api.github.com/repos/SatelliteQE/automation-tools/assignees{/user}","branches_url":"https://api.github.com/repos/SatelliteQE/automation-tools/branches{/branch}","tags_url":"https://api.github.com/repos/SatelliteQE/automation-tools/tags","blobs_url":"https://api.github.com/repos/SatelliteQE/automation-tools/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/SatelliteQE/automation-tools/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/SatelliteQE/automation-tools/git/refs{/sha}","trees_url":"https://api.github.com/repos/SatelliteQE/automation-tools/git/trees{/sha}","statuses_url":"https://api.github.com/repos/SatelliteQE/automation-tools/statuses/{sha}","languages_url":"https://api.github.com/repos/SatelliteQE/automation-tools/languages","stargazers_url":"https://api.github.com/repos/SatelliteQE/automation-tools/stargazers","contributors_url":"https://api.github.com/repos/SatelliteQE/automation-tools/contributors","subscribers_url":"https://api.github.com/repos/SatelliteQE/automation-tools/subscribers","subscription_url":"https://api.github.com/repos/SatelliteQE/automation-tools/subscription","commits_url":"https://api.github.com/repos/SatelliteQE/automation-tools/commits{/sha}","git_commits_url":"https://api.github.com/repos/SatelliteQE/automation-tools/git/commits{/sha}","comments_url":"https://api.github.com/repos/SatelliteQE/automation-tools/comments{/number}","issue_comment_url":"https://api.github.com/repos/SatelliteQE/automation-tools/issues/comments{/number}","contents_url":"https://api.github.com/repos/SatelliteQE/automation-tools/contents/{+path}","compare_url":"https://api.github.com/repos/SatelliteQE/automation-tools/compare/{base}...{head}","merges_url":"https://api.github.com/repos/SatelliteQE/automation-tools/merges","archive_url":"https://api.github.com/repos/SatelliteQE/automation-tools/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/SatelliteQE/automation-tools/downloads","issues_url":"https://api.github.com/repos/SatelliteQE/automation-tools/issues{/number}","pulls_url":"https://api.github.com/repos/SatelliteQE/automation-tools/pulls{/number}","milestones_url":"https://api.github.com/repos/SatelliteQE/automation-tools/milestones{/number}","notifications_url":"https://api.github.com/repos/SatelliteQE/automation-tools/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/SatelliteQE/automation-tools/labels{/name}","releases_url":"https://api.github.com/repos/SatelliteQE/automation-tools/releases{/id}","deployments_url":"https://api.github.com/repos/SatelliteQE/automation-tools/deployments","created_at":"2014-08-01T14:27:34Z","updated_at":"2016-03-31T14:58:31Z","pushed_at":"2016-04-20T15:14:03Z","git_url":"git://github.com/SatelliteQE/automation-tools.git","ssh_url":"git@github.com:SatelliteQE/automation-tools.git","clone_url":"https://github.com/SatelliteQE/automation-tools.git","svn_url":"https://github.com/SatelliteQE/automation-tools","homepage":"","size":850,"stargazers_count":5,"watchers_count":5,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":17,"mirror_url":null,"open_issues_count":17,"forks":17,"open_issues":17,"watchers":5,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/SatelliteQE/automation-tools/pulls/321"},"html":{"href":"https://github.com/SatelliteQE/automation-tools/pull/321"},"issue":{"href":"https://api.github.com/repos/SatelliteQE/automation-tools/issues/321"},"comments":{"href":"https://api.github.com/repos/SatelliteQE/automation-tools/issues/321/comments"},"review_comments":{"href":"https://api.github.com/repos/SatelliteQE/automation-tools/pulls/321/comments"},"review_comment":{"href":"https://api.github.com/repos/SatelliteQE/automation-tools/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/SatelliteQE/automation-tools/pulls/321/commits"},"statuses":{"href":"https://api.github.com/repos/SatelliteQE/automation-tools/statuses/af51dd97571429f2a900ef614ad5a0eea9768718"}}}}