{"action":"created","comment":{"url":"https://api.github.com/repos/ministryofjustice/cotton/pulls/comments/22459550","id":22459550,"diff_hunk":"@@ -128,8 +128,18 @@ def configure_fabric_for_host(name):\n     zone_config = get_provider_zone_config()\n \n     if env.provisioning:\n-        env.key_filename = zone_config['provisioning_ssh_key']\n-        env.user = zone_config['provisioning_user']\n+        if 'provisioning_ssh_key' in zone_config:\n+            env.key_filename = zone_config['provisioning_ssh_key']\n+        else:\n+            print(yellow(\"No 'provisioning_ssh_key' defined in zone config\"))\n+        if 'provisioning_user' in zone_config:\n+            env.user = zone_config['provisioning_user']\n+        else:\n+            print(yellow(\"No 'provisioning_user' defined in zone config\"))\n+        if 'provisioning_password' in zone_config:\n+            env.password = zone_config['provisioning_password']\n+        else:\n+            print(yellow(\"No 'provisioning_password' defined in zone config\"))","path":"cotton/api.py","position":26,"original_position":26,"commit_id":"02d6eb3b514b024f5ed4b2325e739472197a6059","original_commit_id":"02d6eb3b514b024f5ed4b2325e739472197a6059","user":{"login":"ashb","id":34150,"avatar_url":"https://avatars.githubusercontent.com/u/34150?v=3","gravatar_id":"","url":"https://api.github.com/users/ashb","html_url":"https://github.com/ashb","followers_url":"https://api.github.com/users/ashb/followers","following_url":"https://api.github.com/users/ashb/following{/other_user}","gists_url":"https://api.github.com/users/ashb/gists{/gist_id}","starred_url":"https://api.github.com/users/ashb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ashb/subscriptions","organizations_url":"https://api.github.com/users/ashb/orgs","repos_url":"https://api.github.com/users/ashb/repos","events_url":"https://api.github.com/users/ashb/events{/privacy}","received_events_url":"https://api.github.com/users/ashb/received_events","type":"User","site_admin":false},"body":"These (warning?) prints should either be fatal errors or removed. Could some of them be given useful default values instead?","created_at":"2015-01-05T13:04:14Z","updated_at":"2015-01-05T13:04:14Z","html_url":"https://github.com/ministryofjustice/cotton/pull/47#discussion_r22459550","pull_request_url":"https://api.github.com/repos/ministryofjustice/cotton/pulls/47","_links":{"self":{"href":"https://api.github.com/repos/ministryofjustice/cotton/pulls/comments/22459550"},"html":{"href":"https://github.com/ministryofjustice/cotton/pull/47#discussion_r22459550"},"pull_request":{"href":"https://api.github.com/repos/ministryofjustice/cotton/pulls/47"}}},"pull_request":{"url":"https://api.github.com/repos/ministryofjustice/cotton/pulls/47","id":26821624,"html_url":"https://github.com/ministryofjustice/cotton/pull/47","diff_url":"https://github.com/ministryofjustice/cotton/pull/47.diff","patch_url":"https://github.com/ministryofjustice/cotton/pull/47.patch","issue_url":"https://api.github.com/repos/ministryofjustice/cotton/issues/47","number":47,"state":"open","locked":false,"title":"allow in provisioning mode to login using username/password (w/o ssh key)","user":{"login":"munhitsu","id":18304,"avatar_url":"https://avatars.githubusercontent.com/u/18304?v=3","gravatar_id":"","url":"https://api.github.com/users/munhitsu","html_url":"https://github.com/munhitsu","followers_url":"https://api.github.com/users/munhitsu/followers","following_url":"https://api.github.com/users/munhitsu/following{/other_user}","gists_url":"https://api.github.com/users/munhitsu/gists{/gist_id}","starred_url":"https://api.github.com/users/munhitsu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/munhitsu/subscriptions","organizations_url":"https://api.github.com/users/munhitsu/orgs","repos_url":"https://api.github.com/users/munhitsu/repos","events_url":"https://api.github.com/users/munhitsu/events{/privacy}","received_events_url":"https://api.github.com/users/munhitsu/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-01-05T12:47:47Z","updated_at":"2015-01-05T13:04:14Z","closed_at":null,"merged_at":null,"merge_commit_sha":"909f7dd0e7dc06076d68aba21c812609156c1200","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/ministryofjustice/cotton/pulls/47/commits","review_comments_url":"https://api.github.com/repos/ministryofjustice/cotton/pulls/47/comments","review_comment_url":"https://api.github.com/repos/ministryofjustice/cotton/pulls/comments/{number}","comments_url":"https://api.github.com/repos/ministryofjustice/cotton/issues/47/comments","statuses_url":"https://api.github.com/repos/ministryofjustice/cotton/statuses/02d6eb3b514b024f5ed4b2325e739472197a6059","head":{"label":"ministryofjustice:provisioning-password","ref":"provisioning-password","sha":"02d6eb3b514b024f5ed4b2325e739472197a6059","user":{"login":"ministryofjustice","id":2203574,"avatar_url":"https://avatars.githubusercontent.com/u/2203574?v=3","gravatar_id":"","url":"https://api.github.com/users/ministryofjustice","html_url":"https://github.com/ministryofjustice","followers_url":"https://api.github.com/users/ministryofjustice/followers","following_url":"https://api.github.com/users/ministryofjustice/following{/other_user}","gists_url":"https://api.github.com/users/ministryofjustice/gists{/gist_id}","starred_url":"https://api.github.com/users/ministryofjustice/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ministryofjustice/subscriptions","organizations_url":"https://api.github.com/users/ministryofjustice/orgs","repos_url":"https://api.github.com/users/ministryofjustice/repos","events_url":"https://api.github.com/users/ministryofjustice/events{/privacy}","received_events_url":"https://api.github.com/users/ministryofjustice/received_events","type":"Organization","site_admin":false},"repo":{"id":16911960,"name":"cotton","full_name":"ministryofjustice/cotton","owner":{"login":"ministryofjustice","id":2203574,"avatar_url":"https://avatars.githubusercontent.com/u/2203574?v=3","gravatar_id":"","url":"https://api.github.com/users/ministryofjustice","html_url":"https://github.com/ministryofjustice","followers_url":"https://api.github.com/users/ministryofjustice/followers","following_url":"https://api.github.com/users/ministryofjustice/following{/other_user}","gists_url":"https://api.github.com/users/ministryofjustice/gists{/gist_id}","starred_url":"https://api.github.com/users/ministryofjustice/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ministryofjustice/subscriptions","organizations_url":"https://api.github.com/users/ministryofjustice/orgs","repos_url":"https://api.github.com/users/ministryofjustice/repos","events_url":"https://api.github.com/users/ministryofjustice/events{/privacy}","received_events_url":"https://api.github.com/users/ministryofjustice/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ministryofjustice/cotton","description":"Project independent shared fabric extensions to bootstrap first VM and manage configuration within team","fork":false,"url":"https://api.github.com/repos/ministryofjustice/cotton","forks_url":"https://api.github.com/repos/ministryofjustice/cotton/forks","keys_url":"https://api.github.com/repos/ministryofjustice/cotton/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ministryofjustice/cotton/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ministryofjustice/cotton/teams","hooks_url":"https://api.github.com/repos/ministryofjustice/cotton/hooks","issue_events_url":"https://api.github.com/repos/ministryofjustice/cotton/issues/events{/number}","events_url":"https://api.github.com/repos/ministryofjustice/cotton/events","assignees_url":"https://api.github.com/repos/ministryofjustice/cotton/assignees{/user}","branches_url":"https://api.github.com/repos/ministryofjustice/cotton/branches{/branch}","tags_url":"https://api.github.com/repos/ministryofjustice/cotton/tags","blobs_url":"https://api.github.com/repos/ministryofjustice/cotton/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ministryofjustice/cotton/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ministryofjustice/cotton/git/refs{/sha}","trees_url":"https://api.github.com/repos/ministryofjustice/cotton/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ministryofjustice/cotton/statuses/{sha}","languages_url":"https://api.github.com/repos/ministryofjustice/cotton/languages","stargazers_url":"https://api.github.com/repos/ministryofjustice/cotton/stargazers","contributors_url":"https://api.github.com/repos/ministryofjustice/cotton/contributors","subscribers_url":"https://api.github.com/repos/ministryofjustice/cotton/subscribers","subscription_url":"https://api.github.com/repos/ministryofjustice/cotton/subscription","commits_url":"https://api.github.com/repos/ministryofjustice/cotton/commits{/sha}","git_commits_url":"https://api.github.com/repos/ministryofjustice/cotton/git/commits{/sha}","comments_url":"https://api.github.com/repos/ministryofjustice/cotton/comments{/number}","issue_comment_url":"https://api.github.com/repos/ministryofjustice/cotton/issues/comments/{number}","contents_url":"https://api.github.com/repos/ministryofjustice/cotton/contents/{+path}","compare_url":"https://api.github.com/repos/ministryofjustice/cotton/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ministryofjustice/cotton/merges","archive_url":"https://api.github.com/repos/ministryofjustice/cotton/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ministryofjustice/cotton/downloads","issues_url":"https://api.github.com/repos/ministryofjustice/cotton/issues{/number}","pulls_url":"https://api.github.com/repos/ministryofjustice/cotton/pulls{/number}","milestones_url":"https://api.github.com/repos/ministryofjustice/cotton/milestones{/number}","notifications_url":"https://api.github.com/repos/ministryofjustice/cotton/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ministryofjustice/cotton/labels{/name}","releases_url":"https://api.github.com/repos/ministryofjustice/cotton/releases{/id}","created_at":"2014-02-17T12:21:40Z","updated_at":"2014-12-24T12:07:54Z","pushed_at":"2015-01-05T12:55:09Z","git_url":"git://github.com/ministryofjustice/cotton.git","ssh_url":"git@github.com:ministryofjustice/cotton.git","clone_url":"https://github.com/ministryofjustice/cotton.git","svn_url":"https://github.com/ministryofjustice/cotton","homepage":"","size":988,"stargazers_count":2,"watchers_count":2,"language":"Shell","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":7,"forks":2,"open_issues":7,"watchers":2,"default_branch":"master"}},"base":{"label":"ministryofjustice:master","ref":"master","sha":"9d12f8b500bcec033fbb1855215d56a4b3e47fad","user":{"login":"ministryofjustice","id":2203574,"avatar_url":"https://avatars.githubusercontent.com/u/2203574?v=3","gravatar_id":"","url":"https://api.github.com/users/ministryofjustice","html_url":"https://github.com/ministryofjustice","followers_url":"https://api.github.com/users/ministryofjustice/followers","following_url":"https://api.github.com/users/ministryofjustice/following{/other_user}","gists_url":"https://api.github.com/users/ministryofjustice/gists{/gist_id}","starred_url":"https://api.github.com/users/ministryofjustice/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ministryofjustice/subscriptions","organizations_url":"https://api.github.com/users/ministryofjustice/orgs","repos_url":"https://api.github.com/users/ministryofjustice/repos","events_url":"https://api.github.com/users/ministryofjustice/events{/privacy}","received_events_url":"https://api.github.com/users/ministryofjustice/received_events","type":"Organization","site_admin":false},"repo":{"id":16911960,"name":"cotton","full_name":"ministryofjustice/cotton","owner":{"login":"ministryofjustice","id":2203574,"avatar_url":"https://avatars.githubusercontent.com/u/2203574?v=3","gravatar_id":"","url":"https://api.github.com/users/ministryofjustice","html_url":"https://github.com/ministryofjustice","followers_url":"https://api.github.com/users/ministryofjustice/followers","following_url":"https://api.github.com/users/ministryofjustice/following{/other_user}","gists_url":"https://api.github.com/users/ministryofjustice/gists{/gist_id}","starred_url":"https://api.github.com/users/ministryofjustice/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ministryofjustice/subscriptions","organizations_url":"https://api.github.com/users/ministryofjustice/orgs","repos_url":"https://api.github.com/users/ministryofjustice/repos","events_url":"https://api.github.com/users/ministryofjustice/events{/privacy}","received_events_url":"https://api.github.com/users/ministryofjustice/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ministryofjustice/cotton","description":"Project independent shared fabric extensions to bootstrap first VM and manage configuration within team","fork":false,"url":"https://api.github.com/repos/ministryofjustice/cotton","forks_url":"https://api.github.com/repos/ministryofjustice/cotton/forks","keys_url":"https://api.github.com/repos/ministryofjustice/cotton/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ministryofjustice/cotton/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ministryofjustice/cotton/teams","hooks_url":"https://api.github.com/repos/ministryofjustice/cotton/hooks","issue_events_url":"https://api.github.com/repos/ministryofjustice/cotton/issues/events{/number}","events_url":"https://api.github.com/repos/ministryofjustice/cotton/events","assignees_url":"https://api.github.com/repos/ministryofjustice/cotton/assignees{/user}","branches_url":"https://api.github.com/repos/ministryofjustice/cotton/branches{/branch}","tags_url":"https://api.github.com/repos/ministryofjustice/cotton/tags","blobs_url":"https://api.github.com/repos/ministryofjustice/cotton/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ministryofjustice/cotton/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ministryofjustice/cotton/git/refs{/sha}","trees_url":"https://api.github.com/repos/ministryofjustice/cotton/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ministryofjustice/cotton/statuses/{sha}","languages_url":"https://api.github.com/repos/ministryofjustice/cotton/languages","stargazers_url":"https://api.github.com/repos/ministryofjustice/cotton/stargazers","contributors_url":"https://api.github.com/repos/ministryofjustice/cotton/contributors","subscribers_url":"https://api.github.com/repos/ministryofjustice/cotton/subscribers","subscription_url":"https://api.github.com/repos/ministryofjustice/cotton/subscription","commits_url":"https://api.github.com/repos/ministryofjustice/cotton/commits{/sha}","git_commits_url":"https://api.github.com/repos/ministryofjustice/cotton/git/commits{/sha}","comments_url":"https://api.github.com/repos/ministryofjustice/cotton/comments{/number}","issue_comment_url":"https://api.github.com/repos/ministryofjustice/cotton/issues/comments/{number}","contents_url":"https://api.github.com/repos/ministryofjustice/cotton/contents/{+path}","compare_url":"https://api.github.com/repos/ministryofjustice/cotton/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ministryofjustice/cotton/merges","archive_url":"https://api.github.com/repos/ministryofjustice/cotton/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ministryofjustice/cotton/downloads","issues_url":"https://api.github.com/repos/ministryofjustice/cotton/issues{/number}","pulls_url":"https://api.github.com/repos/ministryofjustice/cotton/pulls{/number}","milestones_url":"https://api.github.com/repos/ministryofjustice/cotton/milestones{/number}","notifications_url":"https://api.github.com/repos/ministryofjustice/cotton/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ministryofjustice/cotton/labels{/name}","releases_url":"https://api.github.com/repos/ministryofjustice/cotton/releases{/id}","created_at":"2014-02-17T12:21:40Z","updated_at":"2014-12-24T12:07:54Z","pushed_at":"2015-01-05T12:55:09Z","git_url":"git://github.com/ministryofjustice/cotton.git","ssh_url":"git@github.com:ministryofjustice/cotton.git","clone_url":"https://github.com/ministryofjustice/cotton.git","svn_url":"https://github.com/ministryofjustice/cotton","homepage":"","size":988,"stargazers_count":2,"watchers_count":2,"language":"Shell","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":7,"forks":2,"open_issues":7,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ministryofjustice/cotton/pulls/47"},"html":{"href":"https://github.com/ministryofjustice/cotton/pull/47"},"issue":{"href":"https://api.github.com/repos/ministryofjustice/cotton/issues/47"},"comments":{"href":"https://api.github.com/repos/ministryofjustice/cotton/issues/47/comments"},"review_comments":{"href":"https://api.github.com/repos/ministryofjustice/cotton/pulls/47/comments"},"review_comment":{"href":"https://api.github.com/repos/ministryofjustice/cotton/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/ministryofjustice/cotton/pulls/47/commits"},"statuses":{"href":"https://api.github.com/repos/ministryofjustice/cotton/statuses/02d6eb3b514b024f5ed4b2325e739472197a6059"}}}}