{"action":"created","comment":{"url":"https://api.github.com/repos/ManageIQ/manageiq/pulls/comments/35669369","id":35669369,"diff_hunk":"@@ -108,12 +108,12 @@ def update_authentication(data, options = {})\n       current = {:new => nil, :old => nil}\n \n       if value[:auth_key] && !self.kind_of?(EmsContainer)\n-        # TODO(lsmola) figure out if there is a better way. Password field is replacing \\n with \\s, I need to replace\n-        # them back\n-        fixed_auth_key = value[:auth_key].gsub(/-----BEGIN\\sRSA\\sPRIVATE\\sKEY-----/, '')\n-        fixed_auth_key = fixed_auth_key.gsub(/-----END\\sRSA\\sPRIVATE\\sKEY-----/, '')\n-        fixed_auth_key = fixed_auth_key.gsub(/\\s/, \"\\n\")\n-        value[:auth_key] = '-----BEGIN RSA PRIVATE KEY-----' + fixed_auth_key + '-----END RSA PRIVATE KEY-----'\n+          # TODO(lsmola) figure out if there is a better way. Password field is replacing \\n with \\s, I need to replace\n+          # them back\n+          fixed_auth_key = value[:auth_key].gsub(/-----BEGIN\\sRSA\\sPRIVATE\\sKEY-----/, '')\n+          fixed_auth_key = fixed_auth_key.gsub(/-----END\\sRSA\\sPRIVATE\\sKEY-----/, '')\n+          fixed_auth_key = fixed_auth_key.gsub(/\\s/, \"\\n\")\n+          value[:auth_key] = '-----BEGIN RSA PRIVATE KEY-----' + fixed_auth_key + '-----END RSA PRIVATE KEY-----'","path":"app/models/mixins/authentication_mixin.rb","position":15,"original_position":15,"commit_id":"e596f2fee4c1cea5900c9ffec82949d0e7f5ec9f","original_commit_id":"e596f2fee4c1cea5900c9ffec82949d0e7f5ec9f","user":{"login":"Fryguy","id":52120,"avatar_url":"https://avatars.githubusercontent.com/u/52120?v=3","gravatar_id":"","url":"https://api.github.com/users/Fryguy","html_url":"https://github.com/Fryguy","followers_url":"https://api.github.com/users/Fryguy/followers","following_url":"https://api.github.com/users/Fryguy/following{/other_user}","gists_url":"https://api.github.com/users/Fryguy/gists{/gist_id}","starred_url":"https://api.github.com/users/Fryguy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Fryguy/subscriptions","organizations_url":"https://api.github.com/users/Fryguy/orgs","repos_url":"https://api.github.com/users/Fryguy/repos","events_url":"https://api.github.com/users/Fryguy/events{/privacy}","received_events_url":"https://api.github.com/users/Fryguy/received_events","type":"User","site_admin":false},"body":"Why was this indented?  Was anything actually changed here?","created_at":"2015-07-28T16:38:03Z","updated_at":"2015-07-28T16:38:03Z","html_url":"https://github.com/ManageIQ/manageiq/pull/3623#discussion_r35669369","pull_request_url":"https://api.github.com/repos/ManageIQ/manageiq/pulls/3623","_links":{"self":{"href":"https://api.github.com/repos/ManageIQ/manageiq/pulls/comments/35669369"},"html":{"href":"https://github.com/ManageIQ/manageiq/pull/3623#discussion_r35669369"},"pull_request":{"href":"https://api.github.com/repos/ManageIQ/manageiq/pulls/3623"}}},"pull_request":{"url":"https://api.github.com/repos/ManageIQ/manageiq/pulls/3623","id":41018123,"html_url":"https://github.com/ManageIQ/manageiq/pull/3623","diff_url":"https://github.com/ManageIQ/manageiq/pull/3623.diff","patch_url":"https://github.com/ManageIQ/manageiq/pull/3623.patch","issue_url":"https://api.github.com/repos/ManageIQ/manageiq/issues/3623","number":3623,"state":"open","locked":false,"title":"[WIP] Azure refresh parser.","user":{"login":"bronaghs","id":4379675,"avatar_url":"https://avatars.githubusercontent.com/u/4379675?v=3","gravatar_id":"","url":"https://api.github.com/users/bronaghs","html_url":"https://github.com/bronaghs","followers_url":"https://api.github.com/users/bronaghs/followers","following_url":"https://api.github.com/users/bronaghs/following{/other_user}","gists_url":"https://api.github.com/users/bronaghs/gists{/gist_id}","starred_url":"https://api.github.com/users/bronaghs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bronaghs/subscriptions","organizations_url":"https://api.github.com/users/bronaghs/orgs","repos_url":"https://api.github.com/users/bronaghs/repos","events_url":"https://api.github.com/users/bronaghs/events{/privacy}","received_events_url":"https://api.github.com/users/bronaghs/received_events","type":"User","site_admin":false},"body":"This is a WIP, the following is in progress:\r\n- spec tests\r\n- rubo cop checks\r\n- set the VM power status\r\n- check if locations are valid before gathering series per location\r\n- Alter Gemfile to point to the Arm-rest repo on github.com instead of my local directory\r\n- The UI team needs to make changes to the Add/Edit provider screen. Right now I am using hostname text box to for tenantID, the username textbox for the client ID and the password textbox for the client key.\r\n\r\nI am going on vacation on 8/3 for almost two weeks so this PR needs to be ready to merge by Friday 7/31 to make the current sprint.","created_at":"2015-07-28T14:33:01Z","updated_at":"2015-07-28T16:38:03Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b33fd6f01c83de47db88fed2aa2c5920e29331db","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/ManageIQ/manageiq/pulls/3623/commits","review_comments_url":"https://api.github.com/repos/ManageIQ/manageiq/pulls/3623/comments","review_comment_url":"https://api.github.com/repos/ManageIQ/manageiq/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ManageIQ/manageiq/issues/3623/comments","statuses_url":"https://api.github.com/repos/ManageIQ/manageiq/statuses/e596f2fee4c1cea5900c9ffec82949d0e7f5ec9f","head":{"label":"bronaghs:azure_refresh","ref":"azure_refresh","sha":"e596f2fee4c1cea5900c9ffec82949d0e7f5ec9f","user":{"login":"bronaghs","id":4379675,"avatar_url":"https://avatars.githubusercontent.com/u/4379675?v=3","gravatar_id":"","url":"https://api.github.com/users/bronaghs","html_url":"https://github.com/bronaghs","followers_url":"https://api.github.com/users/bronaghs/followers","following_url":"https://api.github.com/users/bronaghs/following{/other_user}","gists_url":"https://api.github.com/users/bronaghs/gists{/gist_id}","starred_url":"https://api.github.com/users/bronaghs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bronaghs/subscriptions","organizations_url":"https://api.github.com/users/bronaghs/orgs","repos_url":"https://api.github.com/users/bronaghs/repos","events_url":"https://api.github.com/users/bronaghs/events{/privacy}","received_events_url":"https://api.github.com/users/bronaghs/received_events","type":"User","site_admin":false},"repo":{"id":20886201,"name":"manageiq","full_name":"bronaghs/manageiq","owner":{"login":"bronaghs","id":4379675,"avatar_url":"https://avatars.githubusercontent.com/u/4379675?v=3","gravatar_id":"","url":"https://api.github.com/users/bronaghs","html_url":"https://github.com/bronaghs","followers_url":"https://api.github.com/users/bronaghs/followers","following_url":"https://api.github.com/users/bronaghs/following{/other_user}","gists_url":"https://api.github.com/users/bronaghs/gists{/gist_id}","starred_url":"https://api.github.com/users/bronaghs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bronaghs/subscriptions","organizations_url":"https://api.github.com/users/bronaghs/orgs","repos_url":"https://api.github.com/users/bronaghs/repos","events_url":"https://api.github.com/users/bronaghs/events{/privacy}","received_events_url":"https://api.github.com/users/bronaghs/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/bronaghs/manageiq","description":"ManageIQ Cloud Management Platform","fork":true,"url":"https://api.github.com/repos/bronaghs/manageiq","forks_url":"https://api.github.com/repos/bronaghs/manageiq/forks","keys_url":"https://api.github.com/repos/bronaghs/manageiq/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bronaghs/manageiq/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bronaghs/manageiq/teams","hooks_url":"https://api.github.com/repos/bronaghs/manageiq/hooks","issue_events_url":"https://api.github.com/repos/bronaghs/manageiq/issues/events{/number}","events_url":"https://api.github.com/repos/bronaghs/manageiq/events","assignees_url":"https://api.github.com/repos/bronaghs/manageiq/assignees{/user}","branches_url":"https://api.github.com/repos/bronaghs/manageiq/branches{/branch}","tags_url":"https://api.github.com/repos/bronaghs/manageiq/tags","blobs_url":"https://api.github.com/repos/bronaghs/manageiq/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bronaghs/manageiq/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bronaghs/manageiq/git/refs{/sha}","trees_url":"https://api.github.com/repos/bronaghs/manageiq/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bronaghs/manageiq/statuses/{sha}","languages_url":"https://api.github.com/repos/bronaghs/manageiq/languages","stargazers_url":"https://api.github.com/repos/bronaghs/manageiq/stargazers","contributors_url":"https://api.github.com/repos/bronaghs/manageiq/contributors","subscribers_url":"https://api.github.com/repos/bronaghs/manageiq/subscribers","subscription_url":"https://api.github.com/repos/bronaghs/manageiq/subscription","commits_url":"https://api.github.com/repos/bronaghs/manageiq/commits{/sha}","git_commits_url":"https://api.github.com/repos/bronaghs/manageiq/git/commits{/sha}","comments_url":"https://api.github.com/repos/bronaghs/manageiq/comments{/number}","issue_comment_url":"https://api.github.com/repos/bronaghs/manageiq/issues/comments{/number}","contents_url":"https://api.github.com/repos/bronaghs/manageiq/contents/{+path}","compare_url":"https://api.github.com/repos/bronaghs/manageiq/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bronaghs/manageiq/merges","archive_url":"https://api.github.com/repos/bronaghs/manageiq/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bronaghs/manageiq/downloads","issues_url":"https://api.github.com/repos/bronaghs/manageiq/issues{/number}","pulls_url":"https://api.github.com/repos/bronaghs/manageiq/pulls{/number}","milestones_url":"https://api.github.com/repos/bronaghs/manageiq/milestones{/number}","notifications_url":"https://api.github.com/repos/bronaghs/manageiq/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bronaghs/manageiq/labels{/name}","releases_url":"https://api.github.com/repos/bronaghs/manageiq/releases{/id}","created_at":"2014-06-16T13:40:41Z","updated_at":"2014-06-23T15:25:44Z","pushed_at":"2015-07-28T14:30:10Z","git_url":"git://github.com/bronaghs/manageiq.git","ssh_url":"git@github.com:bronaghs/manageiq.git","clone_url":"https://github.com/bronaghs/manageiq.git","svn_url":"https://github.com/bronaghs/manageiq","homepage":null,"size":76945,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":false,"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":"ManageIQ:master","ref":"master","sha":"35c1bff7c025b03a559e0db54ea35cab95aeb28b","user":{"login":"ManageIQ","id":1125575,"avatar_url":"https://avatars.githubusercontent.com/u/1125575?v=3","gravatar_id":"","url":"https://api.github.com/users/ManageIQ","html_url":"https://github.com/ManageIQ","followers_url":"https://api.github.com/users/ManageIQ/followers","following_url":"https://api.github.com/users/ManageIQ/following{/other_user}","gists_url":"https://api.github.com/users/ManageIQ/gists{/gist_id}","starred_url":"https://api.github.com/users/ManageIQ/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ManageIQ/subscriptions","organizations_url":"https://api.github.com/users/ManageIQ/orgs","repos_url":"https://api.github.com/users/ManageIQ/repos","events_url":"https://api.github.com/users/ManageIQ/events{/privacy}","received_events_url":"https://api.github.com/users/ManageIQ/received_events","type":"Organization","site_admin":false},"repo":{"id":20789757,"name":"manageiq","full_name":"ManageIQ/manageiq","owner":{"login":"ManageIQ","id":1125575,"avatar_url":"https://avatars.githubusercontent.com/u/1125575?v=3","gravatar_id":"","url":"https://api.github.com/users/ManageIQ","html_url":"https://github.com/ManageIQ","followers_url":"https://api.github.com/users/ManageIQ/followers","following_url":"https://api.github.com/users/ManageIQ/following{/other_user}","gists_url":"https://api.github.com/users/ManageIQ/gists{/gist_id}","starred_url":"https://api.github.com/users/ManageIQ/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ManageIQ/subscriptions","organizations_url":"https://api.github.com/users/ManageIQ/orgs","repos_url":"https://api.github.com/users/ManageIQ/repos","events_url":"https://api.github.com/users/ManageIQ/events{/privacy}","received_events_url":"https://api.github.com/users/ManageIQ/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ManageIQ/manageiq","description":"ManageIQ Cloud Management Platform","fork":false,"url":"https://api.github.com/repos/ManageIQ/manageiq","forks_url":"https://api.github.com/repos/ManageIQ/manageiq/forks","keys_url":"https://api.github.com/repos/ManageIQ/manageiq/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ManageIQ/manageiq/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ManageIQ/manageiq/teams","hooks_url":"https://api.github.com/repos/ManageIQ/manageiq/hooks","issue_events_url":"https://api.github.com/repos/ManageIQ/manageiq/issues/events{/number}","events_url":"https://api.github.com/repos/ManageIQ/manageiq/events","assignees_url":"https://api.github.com/repos/ManageIQ/manageiq/assignees{/user}","branches_url":"https://api.github.com/repos/ManageIQ/manageiq/branches{/branch}","tags_url":"https://api.github.com/repos/ManageIQ/manageiq/tags","blobs_url":"https://api.github.com/repos/ManageIQ/manageiq/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ManageIQ/manageiq/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ManageIQ/manageiq/git/refs{/sha}","trees_url":"https://api.github.com/repos/ManageIQ/manageiq/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ManageIQ/manageiq/statuses/{sha}","languages_url":"https://api.github.com/repos/ManageIQ/manageiq/languages","stargazers_url":"https://api.github.com/repos/ManageIQ/manageiq/stargazers","contributors_url":"https://api.github.com/repos/ManageIQ/manageiq/contributors","subscribers_url":"https://api.github.com/repos/ManageIQ/manageiq/subscribers","subscription_url":"https://api.github.com/repos/ManageIQ/manageiq/subscription","commits_url":"https://api.github.com/repos/ManageIQ/manageiq/commits{/sha}","git_commits_url":"https://api.github.com/repos/ManageIQ/manageiq/git/commits{/sha}","comments_url":"https://api.github.com/repos/ManageIQ/manageiq/comments{/number}","issue_comment_url":"https://api.github.com/repos/ManageIQ/manageiq/issues/comments{/number}","contents_url":"https://api.github.com/repos/ManageIQ/manageiq/contents/{+path}","compare_url":"https://api.github.com/repos/ManageIQ/manageiq/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ManageIQ/manageiq/merges","archive_url":"https://api.github.com/repos/ManageIQ/manageiq/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ManageIQ/manageiq/downloads","issues_url":"https://api.github.com/repos/ManageIQ/manageiq/issues{/number}","pulls_url":"https://api.github.com/repos/ManageIQ/manageiq/pulls{/number}","milestones_url":"https://api.github.com/repos/ManageIQ/manageiq/milestones{/number}","notifications_url":"https://api.github.com/repos/ManageIQ/manageiq/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ManageIQ/manageiq/labels{/name}","releases_url":"https://api.github.com/repos/ManageIQ/manageiq/releases{/id}","created_at":"2014-06-13T02:31:26Z","updated_at":"2015-07-28T14:24:23Z","pushed_at":"2015-07-28T16:31:38Z","git_url":"git://github.com/ManageIQ/manageiq.git","ssh_url":"git@github.com:ManageIQ/manageiq.git","clone_url":"https://github.com/ManageIQ/manageiq.git","svn_url":"https://github.com/ManageIQ/manageiq","homepage":"manageiq.org","size":143142,"stargazers_count":129,"watchers_count":129,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":130,"mirror_url":null,"open_issues_count":349,"forks":130,"open_issues":349,"watchers":129,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ManageIQ/manageiq/pulls/3623"},"html":{"href":"https://github.com/ManageIQ/manageiq/pull/3623"},"issue":{"href":"https://api.github.com/repos/ManageIQ/manageiq/issues/3623"},"comments":{"href":"https://api.github.com/repos/ManageIQ/manageiq/issues/3623/comments"},"review_comments":{"href":"https://api.github.com/repos/ManageIQ/manageiq/pulls/3623/comments"},"review_comment":{"href":"https://api.github.com/repos/ManageIQ/manageiq/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ManageIQ/manageiq/pulls/3623/commits"},"statuses":{"href":"https://api.github.com/repos/ManageIQ/manageiq/statuses/e596f2fee4c1cea5900c9ffec82949d0e7f5ec9f"}}}}