{"action":"created","comment":{"url":"https://api.github.com/repos/usharesoft/hammr/pulls/comments/73697514","id":73697514,"diff_hunk":"@@ -173,63 +164,31 @@ def check_credfile(credfile):\n     mainParser.print_help()\n     exit(0)\n \n-if mainArgs.url is not None:\n-    url=mainArgs.url\n-\n-if mainArgs.user is not None:\n-    if not mainArgs.password:\n-        mainArgs.password = getpass.getpass()\n-    username=mainArgs.user\n-    password=mainArgs.password\n-    sslAutosigned=True\n+credentials = credentials_utils.Credential()\n+if mainArgs.user is not None and mainArgs.publicKey is not None and mainArgs.secretKey is not None:\n+\t#using API key cmd lines\n+\tcredentials.fill_credentials_from_cmd_apiKey(mainArgs)","path":"src/hammr/hammr.py","position":118,"original_position":118,"commit_id":"c2ddcc171ce432733952750b3ee40f8539747f26","original_commit_id":"c2ddcc171ce432733952750b3ee40f8539747f26","user":{"login":"lqueiroga","id":14889134,"avatar_url":"https://avatars.githubusercontent.com/u/14889134?v=3","gravatar_id":"","url":"https://api.github.com/users/lqueiroga","html_url":"https://github.com/lqueiroga","followers_url":"https://api.github.com/users/lqueiroga/followers","following_url":"https://api.github.com/users/lqueiroga/following{/other_user}","gists_url":"https://api.github.com/users/lqueiroga/gists{/gist_id}","starred_url":"https://api.github.com/users/lqueiroga/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lqueiroga/subscriptions","organizations_url":"https://api.github.com/users/lqueiroga/orgs","repos_url":"https://api.github.com/users/lqueiroga/repos","events_url":"https://api.github.com/users/lqueiroga/events{/privacy}","received_events_url":"https://api.github.com/users/lqueiroga/received_events","type":"User","site_admin":false},"body":"Don't use mainArgs in parameters but just fill your Credential structure before calling this method without parameters.\r\nPlease check for all method in Credential using mainArgs.","created_at":"2016-08-05T14:07:24Z","updated_at":"2016-08-05T14:07:24Z","html_url":"https://github.com/usharesoft/hammr/pull/85#discussion_r73697514","pull_request_url":"https://api.github.com/repos/usharesoft/hammr/pulls/85","_links":{"self":{"href":"https://api.github.com/repos/usharesoft/hammr/pulls/comments/73697514"},"html":{"href":"https://github.com/usharesoft/hammr/pull/85#discussion_r73697514"},"pull_request":{"href":"https://api.github.com/repos/usharesoft/hammr/pulls/85"}}},"pull_request":{"url":"https://api.github.com/repos/usharesoft/hammr/pulls/85","id":72513723,"html_url":"https://github.com/usharesoft/hammr/pull/85","diff_url":"https://github.com/usharesoft/hammr/pull/85.diff","patch_url":"https://github.com/usharesoft/hammr/pull/85.patch","issue_url":"https://api.github.com/repos/usharesoft/hammr/issues/85","number":85,"state":"open","locked":false,"title":"issue #61 Add support for UForge API Keys","user":{"login":"hugo6","id":5903611,"avatar_url":"https://avatars.githubusercontent.com/u/5903611?v=3","gravatar_id":"","url":"https://api.github.com/users/hugo6","html_url":"https://github.com/hugo6","followers_url":"https://api.github.com/users/hugo6/followers","following_url":"https://api.github.com/users/hugo6/following{/other_user}","gists_url":"https://api.github.com/users/hugo6/gists{/gist_id}","starred_url":"https://api.github.com/users/hugo6/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hugo6/subscriptions","organizations_url":"https://api.github.com/users/hugo6/orgs","repos_url":"https://api.github.com/users/hugo6/repos","events_url":"https://api.github.com/users/hugo6/events{/privacy}","received_events_url":"https://api.github.com/users/hugo6/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-06-03T14:14:59Z","updated_at":"2016-08-05T14:07:24Z","closed_at":null,"merged_at":null,"merge_commit_sha":"98547a47f8efaa462622ce7cd4a6678c2a1b6938","assignee":{"login":"jbremond","id":7648830,"avatar_url":"https://avatars.githubusercontent.com/u/7648830?v=3","gravatar_id":"","url":"https://api.github.com/users/jbremond","html_url":"https://github.com/jbremond","followers_url":"https://api.github.com/users/jbremond/followers","following_url":"https://api.github.com/users/jbremond/following{/other_user}","gists_url":"https://api.github.com/users/jbremond/gists{/gist_id}","starred_url":"https://api.github.com/users/jbremond/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jbremond/subscriptions","organizations_url":"https://api.github.com/users/jbremond/orgs","repos_url":"https://api.github.com/users/jbremond/repos","events_url":"https://api.github.com/users/jbremond/events{/privacy}","received_events_url":"https://api.github.com/users/jbremond/received_events","type":"User","site_admin":false},"assignees":[{"login":"jbremond","id":7648830,"avatar_url":"https://avatars.githubusercontent.com/u/7648830?v=3","gravatar_id":"","url":"https://api.github.com/users/jbremond","html_url":"https://github.com/jbremond","followers_url":"https://api.github.com/users/jbremond/followers","following_url":"https://api.github.com/users/jbremond/following{/other_user}","gists_url":"https://api.github.com/users/jbremond/gists{/gist_id}","starred_url":"https://api.github.com/users/jbremond/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jbremond/subscriptions","organizations_url":"https://api.github.com/users/jbremond/orgs","repos_url":"https://api.github.com/users/jbremond/repos","events_url":"https://api.github.com/users/jbremond/events{/privacy}","received_events_url":"https://api.github.com/users/jbremond/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/usharesoft/hammr/pulls/85/commits","review_comments_url":"https://api.github.com/repos/usharesoft/hammr/pulls/85/comments","review_comment_url":"https://api.github.com/repos/usharesoft/hammr/pulls/comments{/number}","comments_url":"https://api.github.com/repos/usharesoft/hammr/issues/85/comments","statuses_url":"https://api.github.com/repos/usharesoft/hammr/statuses/c2ddcc171ce432733952750b3ee40f8539747f26","head":{"label":"hugo6:hammr-uforge-3.5.1_issue61","ref":"hammr-uforge-3.5.1_issue61","sha":"c2ddcc171ce432733952750b3ee40f8539747f26","user":{"login":"hugo6","id":5903611,"avatar_url":"https://avatars.githubusercontent.com/u/5903611?v=3","gravatar_id":"","url":"https://api.github.com/users/hugo6","html_url":"https://github.com/hugo6","followers_url":"https://api.github.com/users/hugo6/followers","following_url":"https://api.github.com/users/hugo6/following{/other_user}","gists_url":"https://api.github.com/users/hugo6/gists{/gist_id}","starred_url":"https://api.github.com/users/hugo6/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hugo6/subscriptions","organizations_url":"https://api.github.com/users/hugo6/orgs","repos_url":"https://api.github.com/users/hugo6/repos","events_url":"https://api.github.com/users/hugo6/events{/privacy}","received_events_url":"https://api.github.com/users/hugo6/received_events","type":"User","site_admin":false},"repo":{"id":59026360,"name":"hammr","full_name":"hugo6/hammr","owner":{"login":"hugo6","id":5903611,"avatar_url":"https://avatars.githubusercontent.com/u/5903611?v=3","gravatar_id":"","url":"https://api.github.com/users/hugo6","html_url":"https://github.com/hugo6","followers_url":"https://api.github.com/users/hugo6/followers","following_url":"https://api.github.com/users/hugo6/following{/other_user}","gists_url":"https://api.github.com/users/hugo6/gists{/gist_id}","starred_url":"https://api.github.com/users/hugo6/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hugo6/subscriptions","organizations_url":"https://api.github.com/users/hugo6/orgs","repos_url":"https://api.github.com/users/hugo6/repos","events_url":"https://api.github.com/users/hugo6/events{/privacy}","received_events_url":"https://api.github.com/users/hugo6/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/hugo6/hammr","description":"Command-line tool for building conistent and repeatable machine images for multiple cloud platforms","fork":true,"url":"https://api.github.com/repos/hugo6/hammr","forks_url":"https://api.github.com/repos/hugo6/hammr/forks","keys_url":"https://api.github.com/repos/hugo6/hammr/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hugo6/hammr/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hugo6/hammr/teams","hooks_url":"https://api.github.com/repos/hugo6/hammr/hooks","issue_events_url":"https://api.github.com/repos/hugo6/hammr/issues/events{/number}","events_url":"https://api.github.com/repos/hugo6/hammr/events","assignees_url":"https://api.github.com/repos/hugo6/hammr/assignees{/user}","branches_url":"https://api.github.com/repos/hugo6/hammr/branches{/branch}","tags_url":"https://api.github.com/repos/hugo6/hammr/tags","blobs_url":"https://api.github.com/repos/hugo6/hammr/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hugo6/hammr/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hugo6/hammr/git/refs{/sha}","trees_url":"https://api.github.com/repos/hugo6/hammr/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hugo6/hammr/statuses/{sha}","languages_url":"https://api.github.com/repos/hugo6/hammr/languages","stargazers_url":"https://api.github.com/repos/hugo6/hammr/stargazers","contributors_url":"https://api.github.com/repos/hugo6/hammr/contributors","subscribers_url":"https://api.github.com/repos/hugo6/hammr/subscribers","subscription_url":"https://api.github.com/repos/hugo6/hammr/subscription","commits_url":"https://api.github.com/repos/hugo6/hammr/commits{/sha}","git_commits_url":"https://api.github.com/repos/hugo6/hammr/git/commits{/sha}","comments_url":"https://api.github.com/repos/hugo6/hammr/comments{/number}","issue_comment_url":"https://api.github.com/repos/hugo6/hammr/issues/comments{/number}","contents_url":"https://api.github.com/repos/hugo6/hammr/contents/{+path}","compare_url":"https://api.github.com/repos/hugo6/hammr/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hugo6/hammr/merges","archive_url":"https://api.github.com/repos/hugo6/hammr/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hugo6/hammr/downloads","issues_url":"https://api.github.com/repos/hugo6/hammr/issues{/number}","pulls_url":"https://api.github.com/repos/hugo6/hammr/pulls{/number}","milestones_url":"https://api.github.com/repos/hugo6/hammr/milestones{/number}","notifications_url":"https://api.github.com/repos/hugo6/hammr/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hugo6/hammr/labels{/name}","releases_url":"https://api.github.com/repos/hugo6/hammr/releases{/id}","deployments_url":"https://api.github.com/repos/hugo6/hammr/deployments","created_at":"2016-05-17T13:46:21Z","updated_at":"2016-05-17T13:46:22Z","pushed_at":"2016-08-05T08:55:08Z","git_url":"git://github.com/hugo6/hammr.git","ssh_url":"git@github.com:hugo6/hammr.git","clone_url":"https://github.com/hugo6/hammr.git","svn_url":"https://github.com/hugo6/hammr","homepage":"http://hammr.io","size":790,"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":"usharesoft:hammr-uforge-3.5.1","ref":"hammr-uforge-3.5.1","sha":"f79fa7c1b959f94ea1506e53a17cf64851f57c82","user":{"login":"usharesoft","id":7059277,"avatar_url":"https://avatars.githubusercontent.com/u/7059277?v=3","gravatar_id":"","url":"https://api.github.com/users/usharesoft","html_url":"https://github.com/usharesoft","followers_url":"https://api.github.com/users/usharesoft/followers","following_url":"https://api.github.com/users/usharesoft/following{/other_user}","gists_url":"https://api.github.com/users/usharesoft/gists{/gist_id}","starred_url":"https://api.github.com/users/usharesoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/usharesoft/subscriptions","organizations_url":"https://api.github.com/users/usharesoft/orgs","repos_url":"https://api.github.com/users/usharesoft/repos","events_url":"https://api.github.com/users/usharesoft/events{/privacy}","received_events_url":"https://api.github.com/users/usharesoft/received_events","type":"User","site_admin":false},"repo":{"id":18103226,"name":"hammr","full_name":"usharesoft/hammr","owner":{"login":"usharesoft","id":7059277,"avatar_url":"https://avatars.githubusercontent.com/u/7059277?v=3","gravatar_id":"","url":"https://api.github.com/users/usharesoft","html_url":"https://github.com/usharesoft","followers_url":"https://api.github.com/users/usharesoft/followers","following_url":"https://api.github.com/users/usharesoft/following{/other_user}","gists_url":"https://api.github.com/users/usharesoft/gists{/gist_id}","starred_url":"https://api.github.com/users/usharesoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/usharesoft/subscriptions","organizations_url":"https://api.github.com/users/usharesoft/orgs","repos_url":"https://api.github.com/users/usharesoft/repos","events_url":"https://api.github.com/users/usharesoft/events{/privacy}","received_events_url":"https://api.github.com/users/usharesoft/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/usharesoft/hammr","description":"Command-line tool for building consistent and repeatable machine images for multiple cloud platforms","fork":false,"url":"https://api.github.com/repos/usharesoft/hammr","forks_url":"https://api.github.com/repos/usharesoft/hammr/forks","keys_url":"https://api.github.com/repos/usharesoft/hammr/keys{/key_id}","collaborators_url":"https://api.github.com/repos/usharesoft/hammr/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/usharesoft/hammr/teams","hooks_url":"https://api.github.com/repos/usharesoft/hammr/hooks","issue_events_url":"https://api.github.com/repos/usharesoft/hammr/issues/events{/number}","events_url":"https://api.github.com/repos/usharesoft/hammr/events","assignees_url":"https://api.github.com/repos/usharesoft/hammr/assignees{/user}","branches_url":"https://api.github.com/repos/usharesoft/hammr/branches{/branch}","tags_url":"https://api.github.com/repos/usharesoft/hammr/tags","blobs_url":"https://api.github.com/repos/usharesoft/hammr/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/usharesoft/hammr/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/usharesoft/hammr/git/refs{/sha}","trees_url":"https://api.github.com/repos/usharesoft/hammr/git/trees{/sha}","statuses_url":"https://api.github.com/repos/usharesoft/hammr/statuses/{sha}","languages_url":"https://api.github.com/repos/usharesoft/hammr/languages","stargazers_url":"https://api.github.com/repos/usharesoft/hammr/stargazers","contributors_url":"https://api.github.com/repos/usharesoft/hammr/contributors","subscribers_url":"https://api.github.com/repos/usharesoft/hammr/subscribers","subscription_url":"https://api.github.com/repos/usharesoft/hammr/subscription","commits_url":"https://api.github.com/repos/usharesoft/hammr/commits{/sha}","git_commits_url":"https://api.github.com/repos/usharesoft/hammr/git/commits{/sha}","comments_url":"https://api.github.com/repos/usharesoft/hammr/comments{/number}","issue_comment_url":"https://api.github.com/repos/usharesoft/hammr/issues/comments{/number}","contents_url":"https://api.github.com/repos/usharesoft/hammr/contents/{+path}","compare_url":"https://api.github.com/repos/usharesoft/hammr/compare/{base}...{head}","merges_url":"https://api.github.com/repos/usharesoft/hammr/merges","archive_url":"https://api.github.com/repos/usharesoft/hammr/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/usharesoft/hammr/downloads","issues_url":"https://api.github.com/repos/usharesoft/hammr/issues{/number}","pulls_url":"https://api.github.com/repos/usharesoft/hammr/pulls{/number}","milestones_url":"https://api.github.com/repos/usharesoft/hammr/milestones{/number}","notifications_url":"https://api.github.com/repos/usharesoft/hammr/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/usharesoft/hammr/labels{/name}","releases_url":"https://api.github.com/repos/usharesoft/hammr/releases{/id}","deployments_url":"https://api.github.com/repos/usharesoft/hammr/deployments","created_at":"2014-03-25T14:31:21Z","updated_at":"2016-07-24T00:42:30Z","pushed_at":"2016-08-05T09:27:36Z","git_url":"git://github.com/usharesoft/hammr.git","ssh_url":"git@github.com:usharesoft/hammr.git","clone_url":"https://github.com/usharesoft/hammr.git","svn_url":"https://github.com/usharesoft/hammr","homepage":"http://hammr.io","size":842,"stargazers_count":17,"watchers_count":17,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":15,"mirror_url":null,"open_issues_count":40,"forks":15,"open_issues":40,"watchers":17,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/usharesoft/hammr/pulls/85"},"html":{"href":"https://github.com/usharesoft/hammr/pull/85"},"issue":{"href":"https://api.github.com/repos/usharesoft/hammr/issues/85"},"comments":{"href":"https://api.github.com/repos/usharesoft/hammr/issues/85/comments"},"review_comments":{"href":"https://api.github.com/repos/usharesoft/hammr/pulls/85/comments"},"review_comment":{"href":"https://api.github.com/repos/usharesoft/hammr/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/usharesoft/hammr/pulls/85/commits"},"statuses":{"href":"https://api.github.com/repos/usharesoft/hammr/statuses/c2ddcc171ce432733952750b3ee40f8539747f26"}}}}
{"actor":{"display_login":"lqueiroga"}}