{"action":"created","comment":{"url":"https://api.github.com/repos/SatelliteQE/automation-tools/pulls/comments/77769920","id":77769920,"diff_hunk":"@@ -604,17 +604,23 @@ def setup_foreman_discovery():\n     run('rm -rf {0}'.format(template_file))\n \n \n-def enable_ostree():\n-    \"\"\"Task to enable ostree plugin for Satellite on rhel7. This enables ostree\n-    type repository.\n+def enable_ostree(upstream=False):\n+    \"\"\"Task to enable ostree plugin for Satellite on rhel7.\n+    This enables ostree type repository.\n \n+    :param bool upstream: Flag whether we run on upstream. Default: ``False``.\n     \"\"\"\n     os_version = distro_info()[1]\n-    sat_version = os.environ.get('SATELLITE_VERSION')\n-    # Enable ostree plugin only for Satellite6.2 installed on rhel7\n-    if sat_version == '6.2' and os_version >= 7:\n-        run('satellite-installer --scenario satellite '\n-            '--katello-enable-ostree=true')\n+    if os_version >= 7:\n+        if upstream:\n+            create_custom_repos(Centos_Atomic='http://buildlogs.centos.org/'","path":"automation_tools/__init__.py","position":21,"original_position":21,"commit_id":"4f7e475b7939b7d069fe624acde4ccc2e570a7b1","original_commit_id":"4f7e475b7939b7d069fe624acde4ccc2e570a7b1","user":{"login":"sghai","id":620852,"avatar_url":"https://avatars.githubusercontent.com/u/620852?v=3","gravatar_id":"","url":"https://api.github.com/users/sghai","html_url":"https://github.com/sghai","followers_url":"https://api.github.com/users/sghai/followers","following_url":"https://api.github.com/users/sghai/following{/other_user}","gists_url":"https://api.github.com/users/sghai/gists{/gist_id}","starred_url":"https://api.github.com/users/sghai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sghai/subscriptions","organizations_url":"https://api.github.com/users/sghai/orgs","repos_url":"https://api.github.com/users/sghai/repos","events_url":"https://api.github.com/users/sghai/events{/privacy}","received_events_url":"https://api.github.com/users/sghai/received_events","type":"User","site_admin":false},"body":"`s/Centos_Atomic/centos_atomic` ?","created_at":"2016-09-07T07:11:48Z","updated_at":"2016-09-07T07:11:48Z","html_url":"https://github.com/SatelliteQE/automation-tools/pull/402#discussion_r77769920","pull_request_url":"https://api.github.com/repos/SatelliteQE/automation-tools/pulls/402","_links":{"self":{"href":"https://api.github.com/repos/SatelliteQE/automation-tools/pulls/comments/77769920"},"html":{"href":"https://github.com/SatelliteQE/automation-tools/pull/402#discussion_r77769920"},"pull_request":{"href":"https://api.github.com/repos/SatelliteQE/automation-tools/pulls/402"}}},"pull_request":{"url":"https://api.github.com/repos/SatelliteQE/automation-tools/pulls/402","id":84112765,"html_url":"https://github.com/SatelliteQE/automation-tools/pull/402","diff_url":"https://github.com/SatelliteQE/automation-tools/pull/402.diff","patch_url":"https://github.com/SatelliteQE/automation-tools/pull/402.patch","issue_url":"https://api.github.com/repos/SatelliteQE/automation-tools/issues/402","number":402,"state":"open","locked":false,"title":"Enable ostree plugin also for upstream","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":"Enable ostree plugin also for upstream\r\n- enable_ostree() refactored to handle plugin enablement also in upstream\r\n\r\n(Fixes #391)","created_at":"2016-09-06T12:27:40Z","updated_at":"2016-09-07T07:11:48Z","closed_at":null,"merged_at":null,"merge_commit_sha":"76af4b813c31dc8aa1be7e734764ead1e82f6ce6","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/SatelliteQE/automation-tools/pulls/402/commits","review_comments_url":"https://api.github.com/repos/SatelliteQE/automation-tools/pulls/402/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/402/comments","statuses_url":"https://api.github.com/repos/SatelliteQE/automation-tools/statuses/4f7e475b7939b7d069fe624acde4ccc2e570a7b1","head":{"label":"lpramuk:upstream_enable_ostree","ref":"upstream_enable_ostree","sha":"4f7e475b7939b7d069fe624acde4ccc2e570a7b1","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":"2016-05-06T11:55:13Z","pushed_at":"2016-09-07T05:47:59Z","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":753,"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":"7bdb250ca04889c5004a431e426dfb7df4ba0ee0","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-09-06T20:19:46Z","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":985,"stargazers_count":5,"watchers_count":5,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":19,"mirror_url":null,"open_issues_count":13,"forks":19,"open_issues":13,"watchers":5,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/SatelliteQE/automation-tools/pulls/402"},"html":{"href":"https://github.com/SatelliteQE/automation-tools/pull/402"},"issue":{"href":"https://api.github.com/repos/SatelliteQE/automation-tools/issues/402"},"comments":{"href":"https://api.github.com/repos/SatelliteQE/automation-tools/issues/402/comments"},"review_comments":{"href":"https://api.github.com/repos/SatelliteQE/automation-tools/pulls/402/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/402/commits"},"statuses":{"href":"https://api.github.com/repos/SatelliteQE/automation-tools/statuses/4f7e475b7939b7d069fe624acde4ccc2e570a7b1"}}}}
{"actor":{"display_login":"sghai"}}