{"action":"created","comment":{"url":"https://api.github.com/repos/projectatomic/atomic-host-tests/pulls/comments/80118250","id":80118250,"diff_hunk":"@@ -21,6 +22,27 @@\n # the lookup()\n # via http://stackoverflow.com/a/34239020\n #\n+  - name: Get the current commit to find the correct origin file to manipulate later...\n+    command: rpm-ostree status --json\n+    register: rpm_output\n+\n+  - name: Convert deployment information into jinja2 json\n+    set_fact:\n+      json: \"{{ rpm_output.stdout|from_json }}\"\n+\n+  - name: Set version and commit if deployment 0 is booted\n+    set_fact:\n+      booted_commit: \"{{ json['deployments'][0]['checksum'] }}\"\n+    when: json['deployments'][0]['booted']\n+\n+  - name: Set version and commit if deployment 1 is booted\n+    set_fact:\n+      booted_commit: \"{{ json['deployments'][0]['checksum'] }}\"\n+    when: json['deployments'][0]['booted']","path":"roles/redhat_subscription/tasks/main.yaml","position":41,"original_position":41,"commit_id":"def305a7eb93f2be056aa38c7bae7a71c5db5fc1","original_commit_id":"def305a7eb93f2be056aa38c7bae7a71c5db5fc1","user":{"login":"miabbott","id":10236257,"avatar_url":"https://avatars.githubusercontent.com/u/10236257?v=3","gravatar_id":"","url":"https://api.github.com/users/miabbott","html_url":"https://github.com/miabbott","followers_url":"https://api.github.com/users/miabbott/followers","following_url":"https://api.github.com/users/miabbott/following{/other_user}","gists_url":"https://api.github.com/users/miabbott/gists{/gist_id}","starred_url":"https://api.github.com/users/miabbott/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/miabbott/subscriptions","organizations_url":"https://api.github.com/users/miabbott/orgs","repos_url":"https://api.github.com/users/miabbott/repos","events_url":"https://api.github.com/users/miabbott/events{/privacy}","received_events_url":"https://api.github.com/users/miabbott/received_events","type":"User","site_admin":false},"body":"This looks like a copy/paste error.  I think you want to use the deployment at index 1.","created_at":"2016-09-22T19:30:22Z","updated_at":"2016-09-22T19:36:26Z","html_url":"https://github.com/projectatomic/atomic-host-tests/pull/47#discussion_r80118250","pull_request_url":"https://api.github.com/repos/projectatomic/atomic-host-tests/pulls/47","_links":{"self":{"href":"https://api.github.com/repos/projectatomic/atomic-host-tests/pulls/comments/80118250"},"html":{"href":"https://github.com/projectatomic/atomic-host-tests/pull/47#discussion_r80118250"},"pull_request":{"href":"https://api.github.com/repos/projectatomic/atomic-host-tests/pulls/47"}}},"pull_request":{"url":"https://api.github.com/repos/projectatomic/atomic-host-tests/pulls/47","id":86368056,"html_url":"https://github.com/projectatomic/atomic-host-tests/pull/47","diff_url":"https://github.com/projectatomic/atomic-host-tests/pull/47.diff","patch_url":"https://github.com/projectatomic/atomic-host-tests/pull/47.patch","issue_url":"https://api.github.com/repos/projectatomic/atomic-host-tests/issues/47","number":47,"state":"open","locked":false,"title":"Reset refspec in origin for alternate remotes","user":{"login":"mike-nguyen","id":18013877,"avatar_url":"https://avatars.githubusercontent.com/u/18013877?v=3","gravatar_id":"","url":"https://api.github.com/users/mike-nguyen","html_url":"https://github.com/mike-nguyen","followers_url":"https://api.github.com/users/mike-nguyen/followers","following_url":"https://api.github.com/users/mike-nguyen/following{/other_user}","gists_url":"https://api.github.com/users/mike-nguyen/gists{/gist_id}","starred_url":"https://api.github.com/users/mike-nguyen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mike-nguyen/subscriptions","organizations_url":"https://api.github.com/users/mike-nguyen/orgs","repos_url":"https://api.github.com/users/mike-nguyen/repos","events_url":"https://api.github.com/users/mike-nguyen/events{/privacy}","received_events_url":"https://api.github.com/users/mike-nguyen/received_events","type":"User","site_admin":false},"body":"The subscription manager changes the remote in the refspec in the\r\norigin file.  If the test system is pointing to other update streams\r\nlike autobrew builds, the refspec is overwritten and causes issues\r\nwith upgrading.  To fix this, the refspec is now saved when it is not\r\nthe default value and re-written after the subscription process.\r\n\r\nThis fix is particularly important for tests that deal with building\r\nRHEL containers and upgrading to alternate remotes.  Building RHEL\r\ncontainers requires entitlements from the host.  Upgrades to alernate\r\nremotes requires the proper refspec in the origin file.","created_at":"2016-09-22T16:09:46Z","updated_at":"2016-09-22T19:36:26Z","closed_at":null,"merged_at":null,"merge_commit_sha":"22fa1f02da1fd5249abd3a37b6bba6f69d7c1e58","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/projectatomic/atomic-host-tests/pulls/47/commits","review_comments_url":"https://api.github.com/repos/projectatomic/atomic-host-tests/pulls/47/comments","review_comment_url":"https://api.github.com/repos/projectatomic/atomic-host-tests/pulls/comments{/number}","comments_url":"https://api.github.com/repos/projectatomic/atomic-host-tests/issues/47/comments","statuses_url":"https://api.github.com/repos/projectatomic/atomic-host-tests/statuses/def305a7eb93f2be056aa38c7bae7a71c5db5fc1","head":{"label":"mike-nguyen:redhat_subscription","ref":"redhat_subscription","sha":"def305a7eb93f2be056aa38c7bae7a71c5db5fc1","user":{"login":"mike-nguyen","id":18013877,"avatar_url":"https://avatars.githubusercontent.com/u/18013877?v=3","gravatar_id":"","url":"https://api.github.com/users/mike-nguyen","html_url":"https://github.com/mike-nguyen","followers_url":"https://api.github.com/users/mike-nguyen/followers","following_url":"https://api.github.com/users/mike-nguyen/following{/other_user}","gists_url":"https://api.github.com/users/mike-nguyen/gists{/gist_id}","starred_url":"https://api.github.com/users/mike-nguyen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mike-nguyen/subscriptions","organizations_url":"https://api.github.com/users/mike-nguyen/orgs","repos_url":"https://api.github.com/users/mike-nguyen/repos","events_url":"https://api.github.com/users/mike-nguyen/events{/privacy}","received_events_url":"https://api.github.com/users/mike-nguyen/received_events","type":"User","site_admin":false},"repo":{"id":60186060,"name":"atomic-host-tests","full_name":"mike-nguyen/atomic-host-tests","owner":{"login":"mike-nguyen","id":18013877,"avatar_url":"https://avatars.githubusercontent.com/u/18013877?v=3","gravatar_id":"","url":"https://api.github.com/users/mike-nguyen","html_url":"https://github.com/mike-nguyen","followers_url":"https://api.github.com/users/mike-nguyen/followers","following_url":"https://api.github.com/users/mike-nguyen/following{/other_user}","gists_url":"https://api.github.com/users/mike-nguyen/gists{/gist_id}","starred_url":"https://api.github.com/users/mike-nguyen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mike-nguyen/subscriptions","organizations_url":"https://api.github.com/users/mike-nguyen/orgs","repos_url":"https://api.github.com/users/mike-nguyen/repos","events_url":"https://api.github.com/users/mike-nguyen/events{/privacy}","received_events_url":"https://api.github.com/users/mike-nguyen/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mike-nguyen/atomic-host-tests","description":"A collection of tests for Atomic Host","fork":true,"url":"https://api.github.com/repos/mike-nguyen/atomic-host-tests","forks_url":"https://api.github.com/repos/mike-nguyen/atomic-host-tests/forks","keys_url":"https://api.github.com/repos/mike-nguyen/atomic-host-tests/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mike-nguyen/atomic-host-tests/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mike-nguyen/atomic-host-tests/teams","hooks_url":"https://api.github.com/repos/mike-nguyen/atomic-host-tests/hooks","issue_events_url":"https://api.github.com/repos/mike-nguyen/atomic-host-tests/issues/events{/number}","events_url":"https://api.github.com/repos/mike-nguyen/atomic-host-tests/events","assignees_url":"https://api.github.com/repos/mike-nguyen/atomic-host-tests/assignees{/user}","branches_url":"https://api.github.com/repos/mike-nguyen/atomic-host-tests/branches{/branch}","tags_url":"https://api.github.com/repos/mike-nguyen/atomic-host-tests/tags","blobs_url":"https://api.github.com/repos/mike-nguyen/atomic-host-tests/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mike-nguyen/atomic-host-tests/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mike-nguyen/atomic-host-tests/git/refs{/sha}","trees_url":"https://api.github.com/repos/mike-nguyen/atomic-host-tests/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mike-nguyen/atomic-host-tests/statuses/{sha}","languages_url":"https://api.github.com/repos/mike-nguyen/atomic-host-tests/languages","stargazers_url":"https://api.github.com/repos/mike-nguyen/atomic-host-tests/stargazers","contributors_url":"https://api.github.com/repos/mike-nguyen/atomic-host-tests/contributors","subscribers_url":"https://api.github.com/repos/mike-nguyen/atomic-host-tests/subscribers","subscription_url":"https://api.github.com/repos/mike-nguyen/atomic-host-tests/subscription","commits_url":"https://api.github.com/repos/mike-nguyen/atomic-host-tests/commits{/sha}","git_commits_url":"https://api.github.com/repos/mike-nguyen/atomic-host-tests/git/commits{/sha}","comments_url":"https://api.github.com/repos/mike-nguyen/atomic-host-tests/comments{/number}","issue_comment_url":"https://api.github.com/repos/mike-nguyen/atomic-host-tests/issues/comments{/number}","contents_url":"https://api.github.com/repos/mike-nguyen/atomic-host-tests/contents/{+path}","compare_url":"https://api.github.com/repos/mike-nguyen/atomic-host-tests/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mike-nguyen/atomic-host-tests/merges","archive_url":"https://api.github.com/repos/mike-nguyen/atomic-host-tests/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mike-nguyen/atomic-host-tests/downloads","issues_url":"https://api.github.com/repos/mike-nguyen/atomic-host-tests/issues{/number}","pulls_url":"https://api.github.com/repos/mike-nguyen/atomic-host-tests/pulls{/number}","milestones_url":"https://api.github.com/repos/mike-nguyen/atomic-host-tests/milestones{/number}","notifications_url":"https://api.github.com/repos/mike-nguyen/atomic-host-tests/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mike-nguyen/atomic-host-tests/labels{/name}","releases_url":"https://api.github.com/repos/mike-nguyen/atomic-host-tests/releases{/id}","deployments_url":"https://api.github.com/repos/mike-nguyen/atomic-host-tests/deployments","created_at":"2016-06-01T14:52:42Z","updated_at":"2016-07-21T16:15:25Z","pushed_at":"2016-09-22T19:20:50Z","git_url":"git://github.com/mike-nguyen/atomic-host-tests.git","ssh_url":"git@github.com:mike-nguyen/atomic-host-tests.git","clone_url":"https://github.com/mike-nguyen/atomic-host-tests.git","svn_url":"https://github.com/mike-nguyen/atomic-host-tests","homepage":null,"size":242,"stargazers_count":0,"watchers_count":0,"language":"Shell","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":"projectatomic:master","ref":"master","sha":"0c9a0fb0e6160593ec3c062c099e15abfa6bcc91","user":{"login":"projectatomic","id":6852258,"avatar_url":"https://avatars.githubusercontent.com/u/6852258?v=3","gravatar_id":"","url":"https://api.github.com/users/projectatomic","html_url":"https://github.com/projectatomic","followers_url":"https://api.github.com/users/projectatomic/followers","following_url":"https://api.github.com/users/projectatomic/following{/other_user}","gists_url":"https://api.github.com/users/projectatomic/gists{/gist_id}","starred_url":"https://api.github.com/users/projectatomic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/projectatomic/subscriptions","organizations_url":"https://api.github.com/users/projectatomic/orgs","repos_url":"https://api.github.com/users/projectatomic/repos","events_url":"https://api.github.com/users/projectatomic/events{/privacy}","received_events_url":"https://api.github.com/users/projectatomic/received_events","type":"Organization","site_admin":false},"repo":{"id":52913571,"name":"atomic-host-tests","full_name":"projectatomic/atomic-host-tests","owner":{"login":"projectatomic","id":6852258,"avatar_url":"https://avatars.githubusercontent.com/u/6852258?v=3","gravatar_id":"","url":"https://api.github.com/users/projectatomic","html_url":"https://github.com/projectatomic","followers_url":"https://api.github.com/users/projectatomic/followers","following_url":"https://api.github.com/users/projectatomic/following{/other_user}","gists_url":"https://api.github.com/users/projectatomic/gists{/gist_id}","starred_url":"https://api.github.com/users/projectatomic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/projectatomic/subscriptions","organizations_url":"https://api.github.com/users/projectatomic/orgs","repos_url":"https://api.github.com/users/projectatomic/repos","events_url":"https://api.github.com/users/projectatomic/events{/privacy}","received_events_url":"https://api.github.com/users/projectatomic/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/projectatomic/atomic-host-tests","description":"A collection of tests for Atomic Host","fork":false,"url":"https://api.github.com/repos/projectatomic/atomic-host-tests","forks_url":"https://api.github.com/repos/projectatomic/atomic-host-tests/forks","keys_url":"https://api.github.com/repos/projectatomic/atomic-host-tests/keys{/key_id}","collaborators_url":"https://api.github.com/repos/projectatomic/atomic-host-tests/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/projectatomic/atomic-host-tests/teams","hooks_url":"https://api.github.com/repos/projectatomic/atomic-host-tests/hooks","issue_events_url":"https://api.github.com/repos/projectatomic/atomic-host-tests/issues/events{/number}","events_url":"https://api.github.com/repos/projectatomic/atomic-host-tests/events","assignees_url":"https://api.github.com/repos/projectatomic/atomic-host-tests/assignees{/user}","branches_url":"https://api.github.com/repos/projectatomic/atomic-host-tests/branches{/branch}","tags_url":"https://api.github.com/repos/projectatomic/atomic-host-tests/tags","blobs_url":"https://api.github.com/repos/projectatomic/atomic-host-tests/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/projectatomic/atomic-host-tests/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/projectatomic/atomic-host-tests/git/refs{/sha}","trees_url":"https://api.github.com/repos/projectatomic/atomic-host-tests/git/trees{/sha}","statuses_url":"https://api.github.com/repos/projectatomic/atomic-host-tests/statuses/{sha}","languages_url":"https://api.github.com/repos/projectatomic/atomic-host-tests/languages","stargazers_url":"https://api.github.com/repos/projectatomic/atomic-host-tests/stargazers","contributors_url":"https://api.github.com/repos/projectatomic/atomic-host-tests/contributors","subscribers_url":"https://api.github.com/repos/projectatomic/atomic-host-tests/subscribers","subscription_url":"https://api.github.com/repos/projectatomic/atomic-host-tests/subscription","commits_url":"https://api.github.com/repos/projectatomic/atomic-host-tests/commits{/sha}","git_commits_url":"https://api.github.com/repos/projectatomic/atomic-host-tests/git/commits{/sha}","comments_url":"https://api.github.com/repos/projectatomic/atomic-host-tests/comments{/number}","issue_comment_url":"https://api.github.com/repos/projectatomic/atomic-host-tests/issues/comments{/number}","contents_url":"https://api.github.com/repos/projectatomic/atomic-host-tests/contents/{+path}","compare_url":"https://api.github.com/repos/projectatomic/atomic-host-tests/compare/{base}...{head}","merges_url":"https://api.github.com/repos/projectatomic/atomic-host-tests/merges","archive_url":"https://api.github.com/repos/projectatomic/atomic-host-tests/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/projectatomic/atomic-host-tests/downloads","issues_url":"https://api.github.com/repos/projectatomic/atomic-host-tests/issues{/number}","pulls_url":"https://api.github.com/repos/projectatomic/atomic-host-tests/pulls{/number}","milestones_url":"https://api.github.com/repos/projectatomic/atomic-host-tests/milestones{/number}","notifications_url":"https://api.github.com/repos/projectatomic/atomic-host-tests/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/projectatomic/atomic-host-tests/labels{/name}","releases_url":"https://api.github.com/repos/projectatomic/atomic-host-tests/releases{/id}","deployments_url":"https://api.github.com/repos/projectatomic/atomic-host-tests/deployments","created_at":"2016-03-01T22:04:40Z","updated_at":"2016-07-01T17:38:08Z","pushed_at":"2016-09-22T19:28:23Z","git_url":"git://github.com/projectatomic/atomic-host-tests.git","ssh_url":"git@github.com:projectatomic/atomic-host-tests.git","clone_url":"https://github.com/projectatomic/atomic-host-tests.git","svn_url":"https://github.com/projectatomic/atomic-host-tests","homepage":null,"size":246,"stargazers_count":2,"watchers_count":2,"language":"Shell","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":6,"mirror_url":null,"open_issues_count":9,"forks":6,"open_issues":9,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/projectatomic/atomic-host-tests/pulls/47"},"html":{"href":"https://github.com/projectatomic/atomic-host-tests/pull/47"},"issue":{"href":"https://api.github.com/repos/projectatomic/atomic-host-tests/issues/47"},"comments":{"href":"https://api.github.com/repos/projectatomic/atomic-host-tests/issues/47/comments"},"review_comments":{"href":"https://api.github.com/repos/projectatomic/atomic-host-tests/pulls/47/comments"},"review_comment":{"href":"https://api.github.com/repos/projectatomic/atomic-host-tests/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/projectatomic/atomic-host-tests/pulls/47/commits"},"statuses":{"href":"https://api.github.com/repos/projectatomic/atomic-host-tests/statuses/def305a7eb93f2be056aa38c7bae7a71c5db5fc1"}}}}
{"actor":{"display_login":"miabbott"}}