{"action":"created","comment":{"url":"https://api.github.com/repos/dougwig/acos-client/pulls/comments/23330104","id":23330104,"diff_hunk":"@@ -59,44 +59,54 @@ def __init__(self, host, port=None, protocol=\"https\"):\n                 port = 443\n         self.url_base = \"%s://%s:%s\" % (protocol, host, port)\n \n-    def request(self, method, api_url, params={}, headers=None):\n+    def request(self, method, api_url, params={}, headers=None, file_name=None,\n+                file_content=None):\n         LOG.debug(\"axapi_http: full url = %s\", self.url_base + api_url)\n         LOG.debug(\"axapi_http: %s url = %s\", method, api_url)\n         LOG.debug(\"axapi_http: params = %s\", json.dumps(params, indent=4))\n \n-        if params:\n-            payload = json.dumps(params)\n-        else:\n-            payload = None\n+        if (file_name is None and file_content is not None) or \\","path":"acos_client/v30/axapi_http.py","position":15,"original_position":15,"commit_id":"e5cc7a9359026d3646a37bf49cae8aed4b341b53","original_commit_id":"e5cc7a9359026d3646a37bf49cae8aed4b341b53","user":{"login":"0xtobit","id":1410391,"avatar_url":"https://avatars.githubusercontent.com/u/1410391?v=3","gravatar_id":"","url":"https://api.github.com/users/0xtobit","html_url":"https://github.com/0xtobit","followers_url":"https://api.github.com/users/0xtobit/followers","following_url":"https://api.github.com/users/0xtobit/following{/other_user}","gists_url":"https://api.github.com/users/0xtobit/gists{/gist_id}","starred_url":"https://api.github.com/users/0xtobit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/0xtobit/subscriptions","organizations_url":"https://api.github.com/users/0xtobit/orgs","repos_url":"https://api.github.com/users/0xtobit/repos","events_url":"https://api.github.com/users/0xtobit/events{/privacy}","received_events_url":"https://api.github.com/users/0xtobit/received_events","type":"User","site_admin":false},"body":"Good catch, need to reverse the not's in the second input to `or`.","created_at":"2015-01-21T20:09:51Z","updated_at":"2015-01-21T20:09:51Z","html_url":"https://github.com/dougwig/acos-client/pull/3#discussion_r23330104","pull_request_url":"https://api.github.com/repos/dougwig/acos-client/pulls/3","_links":{"self":{"href":"https://api.github.com/repos/dougwig/acos-client/pulls/comments/23330104"},"html":{"href":"https://github.com/dougwig/acos-client/pull/3#discussion_r23330104"},"pull_request":{"href":"https://api.github.com/repos/dougwig/acos-client/pulls/3"}}},"pull_request":{"url":"https://api.github.com/repos/dougwig/acos-client/pulls/3","id":27789924,"html_url":"https://github.com/dougwig/acos-client/pull/3","diff_url":"https://github.com/dougwig/acos-client/pull/3.diff","patch_url":"https://github.com/dougwig/acos-client/pull/3.patch","issue_url":"https://api.github.com/repos/dougwig/acos-client/issues/3","number":3,"state":"open","locked":false,"title":"Implement SSL Cert and SSL Template creation","user":{"login":"0xtobit","id":1410391,"avatar_url":"https://avatars.githubusercontent.com/u/1410391?v=3","gravatar_id":"","url":"https://api.github.com/users/0xtobit","html_url":"https://github.com/0xtobit","followers_url":"https://api.github.com/users/0xtobit/followers","following_url":"https://api.github.com/users/0xtobit/following{/other_user}","gists_url":"https://api.github.com/users/0xtobit/gists{/gist_id}","starred_url":"https://api.github.com/users/0xtobit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/0xtobit/subscriptions","organizations_url":"https://api.github.com/users/0xtobit/orgs","repos_url":"https://api.github.com/users/0xtobit/repos","events_url":"https://api.github.com/users/0xtobit/events{/privacy}","received_events_url":"https://api.github.com/users/0xtobit/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-01-21T20:01:55Z","updated_at":"2015-01-21T20:09:51Z","closed_at":null,"merged_at":null,"merge_commit_sha":"41ca7f4e3c6066cb2f980a6e259831da35049d52","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/dougwig/acos-client/pulls/3/commits","review_comments_url":"https://api.github.com/repos/dougwig/acos-client/pulls/3/comments","review_comment_url":"https://api.github.com/repos/dougwig/acos-client/pulls/comments/{number}","comments_url":"https://api.github.com/repos/dougwig/acos-client/issues/3/comments","statuses_url":"https://api.github.com/repos/dougwig/acos-client/statuses/e5cc7a9359026d3646a37bf49cae8aed4b341b53","head":{"label":"0xtobit:ssl_lb","ref":"ssl_lb","sha":"e5cc7a9359026d3646a37bf49cae8aed4b341b53","user":{"login":"0xtobit","id":1410391,"avatar_url":"https://avatars.githubusercontent.com/u/1410391?v=3","gravatar_id":"","url":"https://api.github.com/users/0xtobit","html_url":"https://github.com/0xtobit","followers_url":"https://api.github.com/users/0xtobit/followers","following_url":"https://api.github.com/users/0xtobit/following{/other_user}","gists_url":"https://api.github.com/users/0xtobit/gists{/gist_id}","starred_url":"https://api.github.com/users/0xtobit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/0xtobit/subscriptions","organizations_url":"https://api.github.com/users/0xtobit/orgs","repos_url":"https://api.github.com/users/0xtobit/repos","events_url":"https://api.github.com/users/0xtobit/events{/privacy}","received_events_url":"https://api.github.com/users/0xtobit/received_events","type":"User","site_admin":false},"repo":{"id":29160357,"name":"acos-client","full_name":"0xtobit/acos-client","owner":{"login":"0xtobit","id":1410391,"avatar_url":"https://avatars.githubusercontent.com/u/1410391?v=3","gravatar_id":"","url":"https://api.github.com/users/0xtobit","html_url":"https://github.com/0xtobit","followers_url":"https://api.github.com/users/0xtobit/followers","following_url":"https://api.github.com/users/0xtobit/following{/other_user}","gists_url":"https://api.github.com/users/0xtobit/gists{/gist_id}","starred_url":"https://api.github.com/users/0xtobit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/0xtobit/subscriptions","organizations_url":"https://api.github.com/users/0xtobit/orgs","repos_url":"https://api.github.com/users/0xtobit/repos","events_url":"https://api.github.com/users/0xtobit/events{/privacy}","received_events_url":"https://api.github.com/users/0xtobit/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/0xtobit/acos-client","description":"ACOS API Client","fork":true,"url":"https://api.github.com/repos/0xtobit/acos-client","forks_url":"https://api.github.com/repos/0xtobit/acos-client/forks","keys_url":"https://api.github.com/repos/0xtobit/acos-client/keys{/key_id}","collaborators_url":"https://api.github.com/repos/0xtobit/acos-client/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/0xtobit/acos-client/teams","hooks_url":"https://api.github.com/repos/0xtobit/acos-client/hooks","issue_events_url":"https://api.github.com/repos/0xtobit/acos-client/issues/events{/number}","events_url":"https://api.github.com/repos/0xtobit/acos-client/events","assignees_url":"https://api.github.com/repos/0xtobit/acos-client/assignees{/user}","branches_url":"https://api.github.com/repos/0xtobit/acos-client/branches{/branch}","tags_url":"https://api.github.com/repos/0xtobit/acos-client/tags","blobs_url":"https://api.github.com/repos/0xtobit/acos-client/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/0xtobit/acos-client/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/0xtobit/acos-client/git/refs{/sha}","trees_url":"https://api.github.com/repos/0xtobit/acos-client/git/trees{/sha}","statuses_url":"https://api.github.com/repos/0xtobit/acos-client/statuses/{sha}","languages_url":"https://api.github.com/repos/0xtobit/acos-client/languages","stargazers_url":"https://api.github.com/repos/0xtobit/acos-client/stargazers","contributors_url":"https://api.github.com/repos/0xtobit/acos-client/contributors","subscribers_url":"https://api.github.com/repos/0xtobit/acos-client/subscribers","subscription_url":"https://api.github.com/repos/0xtobit/acos-client/subscription","commits_url":"https://api.github.com/repos/0xtobit/acos-client/commits{/sha}","git_commits_url":"https://api.github.com/repos/0xtobit/acos-client/git/commits{/sha}","comments_url":"https://api.github.com/repos/0xtobit/acos-client/comments{/number}","issue_comment_url":"https://api.github.com/repos/0xtobit/acos-client/issues/comments/{number}","contents_url":"https://api.github.com/repos/0xtobit/acos-client/contents/{+path}","compare_url":"https://api.github.com/repos/0xtobit/acos-client/compare/{base}...{head}","merges_url":"https://api.github.com/repos/0xtobit/acos-client/merges","archive_url":"https://api.github.com/repos/0xtobit/acos-client/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/0xtobit/acos-client/downloads","issues_url":"https://api.github.com/repos/0xtobit/acos-client/issues{/number}","pulls_url":"https://api.github.com/repos/0xtobit/acos-client/pulls{/number}","milestones_url":"https://api.github.com/repos/0xtobit/acos-client/milestones{/number}","notifications_url":"https://api.github.com/repos/0xtobit/acos-client/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/0xtobit/acos-client/labels{/name}","releases_url":"https://api.github.com/repos/0xtobit/acos-client/releases{/id}","created_at":"2015-01-12T22:29:56Z","updated_at":"2015-01-12T22:29:57Z","pushed_at":"2015-01-21T20:00:59Z","git_url":"git://github.com/0xtobit/acos-client.git","ssh_url":"git@github.com:0xtobit/acos-client.git","clone_url":"https://github.com/0xtobit/acos-client.git","svn_url":"https://github.com/0xtobit/acos-client","homepage":null,"size":486,"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":"dougwig:axapi_30","ref":"axapi_30","sha":"de60c1f15a3205f4125742809dd6d483570ec545","user":{"login":"dougwig","id":603553,"avatar_url":"https://avatars.githubusercontent.com/u/603553?v=3","gravatar_id":"","url":"https://api.github.com/users/dougwig","html_url":"https://github.com/dougwig","followers_url":"https://api.github.com/users/dougwig/followers","following_url":"https://api.github.com/users/dougwig/following{/other_user}","gists_url":"https://api.github.com/users/dougwig/gists{/gist_id}","starred_url":"https://api.github.com/users/dougwig/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dougwig/subscriptions","organizations_url":"https://api.github.com/users/dougwig/orgs","repos_url":"https://api.github.com/users/dougwig/repos","events_url":"https://api.github.com/users/dougwig/events{/privacy}","received_events_url":"https://api.github.com/users/dougwig/received_events","type":"User","site_admin":false},"repo":{"id":21666279,"name":"acos-client","full_name":"dougwig/acos-client","owner":{"login":"dougwig","id":603553,"avatar_url":"https://avatars.githubusercontent.com/u/603553?v=3","gravatar_id":"","url":"https://api.github.com/users/dougwig","html_url":"https://github.com/dougwig","followers_url":"https://api.github.com/users/dougwig/followers","following_url":"https://api.github.com/users/dougwig/following{/other_user}","gists_url":"https://api.github.com/users/dougwig/gists{/gist_id}","starred_url":"https://api.github.com/users/dougwig/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dougwig/subscriptions","organizations_url":"https://api.github.com/users/dougwig/orgs","repos_url":"https://api.github.com/users/dougwig/repos","events_url":"https://api.github.com/users/dougwig/events{/privacy}","received_events_url":"https://api.github.com/users/dougwig/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/dougwig/acos-client","description":"ACOS API Client","fork":true,"url":"https://api.github.com/repos/dougwig/acos-client","forks_url":"https://api.github.com/repos/dougwig/acos-client/forks","keys_url":"https://api.github.com/repos/dougwig/acos-client/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dougwig/acos-client/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dougwig/acos-client/teams","hooks_url":"https://api.github.com/repos/dougwig/acos-client/hooks","issue_events_url":"https://api.github.com/repos/dougwig/acos-client/issues/events{/number}","events_url":"https://api.github.com/repos/dougwig/acos-client/events","assignees_url":"https://api.github.com/repos/dougwig/acos-client/assignees{/user}","branches_url":"https://api.github.com/repos/dougwig/acos-client/branches{/branch}","tags_url":"https://api.github.com/repos/dougwig/acos-client/tags","blobs_url":"https://api.github.com/repos/dougwig/acos-client/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dougwig/acos-client/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dougwig/acos-client/git/refs{/sha}","trees_url":"https://api.github.com/repos/dougwig/acos-client/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dougwig/acos-client/statuses/{sha}","languages_url":"https://api.github.com/repos/dougwig/acos-client/languages","stargazers_url":"https://api.github.com/repos/dougwig/acos-client/stargazers","contributors_url":"https://api.github.com/repos/dougwig/acos-client/contributors","subscribers_url":"https://api.github.com/repos/dougwig/acos-client/subscribers","subscription_url":"https://api.github.com/repos/dougwig/acos-client/subscription","commits_url":"https://api.github.com/repos/dougwig/acos-client/commits{/sha}","git_commits_url":"https://api.github.com/repos/dougwig/acos-client/git/commits{/sha}","comments_url":"https://api.github.com/repos/dougwig/acos-client/comments{/number}","issue_comment_url":"https://api.github.com/repos/dougwig/acos-client/issues/comments/{number}","contents_url":"https://api.github.com/repos/dougwig/acos-client/contents/{+path}","compare_url":"https://api.github.com/repos/dougwig/acos-client/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dougwig/acos-client/merges","archive_url":"https://api.github.com/repos/dougwig/acos-client/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dougwig/acos-client/downloads","issues_url":"https://api.github.com/repos/dougwig/acos-client/issues{/number}","pulls_url":"https://api.github.com/repos/dougwig/acos-client/pulls{/number}","milestones_url":"https://api.github.com/repos/dougwig/acos-client/milestones{/number}","notifications_url":"https://api.github.com/repos/dougwig/acos-client/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dougwig/acos-client/labels{/name}","releases_url":"https://api.github.com/repos/dougwig/acos-client/releases{/id}","created_at":"2014-07-09T19:43:40Z","updated_at":"2014-07-09T22:46:45Z","pushed_at":"2015-01-16T22:00:15Z","git_url":"git://github.com/dougwig/acos-client.git","ssh_url":"git@github.com:dougwig/acos-client.git","clone_url":"https://github.com/dougwig/acos-client.git","svn_url":"https://github.com/dougwig/acos-client","homepage":null,"size":580,"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":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/dougwig/acos-client/pulls/3"},"html":{"href":"https://github.com/dougwig/acos-client/pull/3"},"issue":{"href":"https://api.github.com/repos/dougwig/acos-client/issues/3"},"comments":{"href":"https://api.github.com/repos/dougwig/acos-client/issues/3/comments"},"review_comments":{"href":"https://api.github.com/repos/dougwig/acos-client/pulls/3/comments"},"review_comment":{"href":"https://api.github.com/repos/dougwig/acos-client/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/dougwig/acos-client/pulls/3/commits"},"statuses":{"href":"https://api.github.com/repos/dougwig/acos-client/statuses/e5cc7a9359026d3646a37bf49cae8aed4b341b53"}}}}