{"action":"created","comment":{"url":"https://api.github.com/repos/cloudify-cosmo/cloudify-cli/pulls/comments/28204296","id":28204296,"diff_hunk":"@@ -145,6 +147,40 @@ def _install_docker_if_required(docker_path, use_sudo,\n     return docker_exec_command\n \n \n+def _handle_ssl_configuration(ssl_configuration):\n+    enabled = ssl_configuration.get('enabled', False)\n+    if enabled is True:\n+        # get cert and key file paths\n+        cert_path = ssl_configuration.get('certificate_path')\n+        if not cert_path:\n+            raise NonRecoverableError(\n+                'SSL is enabled => certificate path must be provided')\n+        if not os.path.exists(cert_path):\n+            raise NonRecoverableError(\n+                'The certificate path [{0}] does not exist'\n+                .format(cert_path))\n+        key_path = ssl_configuration.get('private_key_path')\n+        if not key_path:\n+            raise NonRecoverableError(\n+                'SSL is enabled => private key path must be provided')\n+        if not os.path.exists(key_path):","path":"cloudify_cli/bootstrap/tasks.py","position":42,"original_position":42,"commit_id":"8119fd59f5854f4dbf1548dd096ab2dda540c6a1","original_commit_id":"8119fd59f5854f4dbf1548dd096ab2dda540c6a1","user":{"login":"yaelpeled","id":1758681,"avatar_url":"https://avatars.githubusercontent.com/u/1758681?v=3","gravatar_id":"","url":"https://api.github.com/users/yaelpeled","html_url":"https://github.com/yaelpeled","followers_url":"https://api.github.com/users/yaelpeled/followers","following_url":"https://api.github.com/users/yaelpeled/following{/other_user}","gists_url":"https://api.github.com/users/yaelpeled/gists{/gist_id}","starred_url":"https://api.github.com/users/yaelpeled/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yaelpeled/subscriptions","organizations_url":"https://api.github.com/users/yaelpeled/orgs","repos_url":"https://api.github.com/users/yaelpeled/repos","events_url":"https://api.github.com/users/yaelpeled/events{/privacy}","received_events_url":"https://api.github.com/users/yaelpeled/received_events","type":"User","site_admin":false},"body":"os.path.expanduser()","created_at":"2015-04-12T15:21:55Z","updated_at":"2015-04-12T15:21:55Z","html_url":"https://github.com/cloudify-cosmo/cloudify-cli/pull/155#discussion_r28204296","pull_request_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-cli/pulls/155","_links":{"self":{"href":"https://api.github.com/repos/cloudify-cosmo/cloudify-cli/pulls/comments/28204296"},"html":{"href":"https://github.com/cloudify-cosmo/cloudify-cli/pull/155#discussion_r28204296"},"pull_request":{"href":"https://api.github.com/repos/cloudify-cosmo/cloudify-cli/pulls/155"}}},"pull_request":{"url":"https://api.github.com/repos/cloudify-cosmo/cloudify-cli/pulls/155","id":33119103,"html_url":"https://github.com/cloudify-cosmo/cloudify-cli/pull/155","diff_url":"https://github.com/cloudify-cosmo/cloudify-cli/pull/155.diff","patch_url":"https://github.com/cloudify-cosmo/cloudify-cli/pull/155.patch","issue_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-cli/issues/155","number":155,"state":"open","locked":false,"title":"Cfy 2277 support ssl","user":{"login":"yaelpeled","id":1758681,"avatar_url":"https://avatars.githubusercontent.com/u/1758681?v=3","gravatar_id":"","url":"https://api.github.com/users/yaelpeled","html_url":"https://github.com/yaelpeled","followers_url":"https://api.github.com/users/yaelpeled/followers","following_url":"https://api.github.com/users/yaelpeled/following{/other_user}","gists_url":"https://api.github.com/users/yaelpeled/gists{/gist_id}","starred_url":"https://api.github.com/users/yaelpeled/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yaelpeled/subscriptions","organizations_url":"https://api.github.com/users/yaelpeled/orgs","repos_url":"https://api.github.com/users/yaelpeled/repos","events_url":"https://api.github.com/users/yaelpeled/events{/privacy}","received_events_url":"https://api.github.com/users/yaelpeled/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-04-12T12:20:59Z","updated_at":"2015-04-12T15:21:55Z","closed_at":null,"merged_at":null,"merge_commit_sha":"8afd458e1005a162bbd26434810e04b7d56958c8","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-cli/pulls/155/commits","review_comments_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-cli/pulls/155/comments","review_comment_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-cli/pulls/comments{/number}","comments_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-cli/issues/155/comments","statuses_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-cli/statuses/8119fd59f5854f4dbf1548dd096ab2dda540c6a1","head":{"label":"cloudify-cosmo:CFY-2277-support-ssl","ref":"CFY-2277-support-ssl","sha":"8119fd59f5854f4dbf1548dd096ab2dda540c6a1","user":{"login":"cloudify-cosmo","id":6260555,"avatar_url":"https://avatars.githubusercontent.com/u/6260555?v=3","gravatar_id":"","url":"https://api.github.com/users/cloudify-cosmo","html_url":"https://github.com/cloudify-cosmo","followers_url":"https://api.github.com/users/cloudify-cosmo/followers","following_url":"https://api.github.com/users/cloudify-cosmo/following{/other_user}","gists_url":"https://api.github.com/users/cloudify-cosmo/gists{/gist_id}","starred_url":"https://api.github.com/users/cloudify-cosmo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cloudify-cosmo/subscriptions","organizations_url":"https://api.github.com/users/cloudify-cosmo/orgs","repos_url":"https://api.github.com/users/cloudify-cosmo/repos","events_url":"https://api.github.com/users/cloudify-cosmo/events{/privacy}","received_events_url":"https://api.github.com/users/cloudify-cosmo/received_events","type":"Organization","site_admin":false},"repo":{"id":18326701,"name":"cloudify-cli","full_name":"cloudify-cosmo/cloudify-cli","owner":{"login":"cloudify-cosmo","id":6260555,"avatar_url":"https://avatars.githubusercontent.com/u/6260555?v=3","gravatar_id":"","url":"https://api.github.com/users/cloudify-cosmo","html_url":"https://github.com/cloudify-cosmo","followers_url":"https://api.github.com/users/cloudify-cosmo/followers","following_url":"https://api.github.com/users/cloudify-cosmo/following{/other_user}","gists_url":"https://api.github.com/users/cloudify-cosmo/gists{/gist_id}","starred_url":"https://api.github.com/users/cloudify-cosmo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cloudify-cosmo/subscriptions","organizations_url":"https://api.github.com/users/cloudify-cosmo/orgs","repos_url":"https://api.github.com/users/cloudify-cosmo/repos","events_url":"https://api.github.com/users/cloudify-cosmo/events{/privacy}","received_events_url":"https://api.github.com/users/cloudify-cosmo/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/cloudify-cosmo/cloudify-cli","description":"Cloudify's CLI","fork":false,"url":"https://api.github.com/repos/cloudify-cosmo/cloudify-cli","forks_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-cli/forks","keys_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-cli/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-cli/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-cli/teams","hooks_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-cli/hooks","issue_events_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-cli/issues/events{/number}","events_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-cli/events","assignees_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-cli/assignees{/user}","branches_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-cli/branches{/branch}","tags_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-cli/tags","blobs_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-cli/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-cli/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-cli/git/refs{/sha}","trees_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-cli/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-cli/statuses/{sha}","languages_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-cli/languages","stargazers_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-cli/stargazers","contributors_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-cli/contributors","subscribers_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-cli/subscribers","subscription_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-cli/subscription","commits_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-cli/commits{/sha}","git_commits_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-cli/git/commits{/sha}","comments_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-cli/comments{/number}","issue_comment_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-cli/issues/comments{/number}","contents_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-cli/contents/{+path}","compare_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-cli/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-cli/merges","archive_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-cli/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-cli/downloads","issues_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-cli/issues{/number}","pulls_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-cli/pulls{/number}","milestones_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-cli/milestones{/number}","notifications_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-cli/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-cli/labels{/name}","releases_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-cli/releases{/id}","created_at":"2014-04-01T11:12:15Z","updated_at":"2015-04-10T08:40:01Z","pushed_at":"2015-04-12T14:57:12Z","git_url":"git://github.com/cloudify-cosmo/cloudify-cli.git","ssh_url":"git@github.com:cloudify-cosmo/cloudify-cli.git","clone_url":"https://github.com/cloudify-cosmo/cloudify-cli.git","svn_url":"https://github.com/cloudify-cosmo/cloudify-cli","homepage":null,"size":8363,"stargazers_count":6,"watchers_count":6,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":10,"mirror_url":null,"open_issues_count":6,"forks":10,"open_issues":6,"watchers":6,"default_branch":"master"}},"base":{"label":"cloudify-cosmo:3.2m8-build","ref":"3.2m8-build","sha":"ed95876f92bc296e8fda3a9a04ae16476f64f5a3","user":{"login":"cloudify-cosmo","id":6260555,"avatar_url":"https://avatars.githubusercontent.com/u/6260555?v=3","gravatar_id":"","url":"https://api.github.com/users/cloudify-cosmo","html_url":"https://github.com/cloudify-cosmo","followers_url":"https://api.github.com/users/cloudify-cosmo/followers","following_url":"https://api.github.com/users/cloudify-cosmo/following{/other_user}","gists_url":"https://api.github.com/users/cloudify-cosmo/gists{/gist_id}","starred_url":"https://api.github.com/users/cloudify-cosmo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cloudify-cosmo/subscriptions","organizations_url":"https://api.github.com/users/cloudify-cosmo/orgs","repos_url":"https://api.github.com/users/cloudify-cosmo/repos","events_url":"https://api.github.com/users/cloudify-cosmo/events{/privacy}","received_events_url":"https://api.github.com/users/cloudify-cosmo/received_events","type":"Organization","site_admin":false},"repo":{"id":18326701,"name":"cloudify-cli","full_name":"cloudify-cosmo/cloudify-cli","owner":{"login":"cloudify-cosmo","id":6260555,"avatar_url":"https://avatars.githubusercontent.com/u/6260555?v=3","gravatar_id":"","url":"https://api.github.com/users/cloudify-cosmo","html_url":"https://github.com/cloudify-cosmo","followers_url":"https://api.github.com/users/cloudify-cosmo/followers","following_url":"https://api.github.com/users/cloudify-cosmo/following{/other_user}","gists_url":"https://api.github.com/users/cloudify-cosmo/gists{/gist_id}","starred_url":"https://api.github.com/users/cloudify-cosmo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cloudify-cosmo/subscriptions","organizations_url":"https://api.github.com/users/cloudify-cosmo/orgs","repos_url":"https://api.github.com/users/cloudify-cosmo/repos","events_url":"https://api.github.com/users/cloudify-cosmo/events{/privacy}","received_events_url":"https://api.github.com/users/cloudify-cosmo/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/cloudify-cosmo/cloudify-cli","description":"Cloudify's CLI","fork":false,"url":"https://api.github.com/repos/cloudify-cosmo/cloudify-cli","forks_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-cli/forks","keys_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-cli/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-cli/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-cli/teams","hooks_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-cli/hooks","issue_events_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-cli/issues/events{/number}","events_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-cli/events","assignees_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-cli/assignees{/user}","branches_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-cli/branches{/branch}","tags_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-cli/tags","blobs_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-cli/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-cli/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-cli/git/refs{/sha}","trees_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-cli/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-cli/statuses/{sha}","languages_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-cli/languages","stargazers_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-cli/stargazers","contributors_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-cli/contributors","subscribers_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-cli/subscribers","subscription_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-cli/subscription","commits_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-cli/commits{/sha}","git_commits_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-cli/git/commits{/sha}","comments_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-cli/comments{/number}","issue_comment_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-cli/issues/comments{/number}","contents_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-cli/contents/{+path}","compare_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-cli/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-cli/merges","archive_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-cli/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-cli/downloads","issues_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-cli/issues{/number}","pulls_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-cli/pulls{/number}","milestones_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-cli/milestones{/number}","notifications_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-cli/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-cli/labels{/name}","releases_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-cli/releases{/id}","created_at":"2014-04-01T11:12:15Z","updated_at":"2015-04-10T08:40:01Z","pushed_at":"2015-04-12T14:57:12Z","git_url":"git://github.com/cloudify-cosmo/cloudify-cli.git","ssh_url":"git@github.com:cloudify-cosmo/cloudify-cli.git","clone_url":"https://github.com/cloudify-cosmo/cloudify-cli.git","svn_url":"https://github.com/cloudify-cosmo/cloudify-cli","homepage":null,"size":8363,"stargazers_count":6,"watchers_count":6,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":10,"mirror_url":null,"open_issues_count":6,"forks":10,"open_issues":6,"watchers":6,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/cloudify-cosmo/cloudify-cli/pulls/155"},"html":{"href":"https://github.com/cloudify-cosmo/cloudify-cli/pull/155"},"issue":{"href":"https://api.github.com/repos/cloudify-cosmo/cloudify-cli/issues/155"},"comments":{"href":"https://api.github.com/repos/cloudify-cosmo/cloudify-cli/issues/155/comments"},"review_comments":{"href":"https://api.github.com/repos/cloudify-cosmo/cloudify-cli/pulls/155/comments"},"review_comment":{"href":"https://api.github.com/repos/cloudify-cosmo/cloudify-cli/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/cloudify-cosmo/cloudify-cli/pulls/155/commits"},"statuses":{"href":"https://api.github.com/repos/cloudify-cosmo/cloudify-cli/statuses/8119fd59f5854f4dbf1548dd096ab2dda540c6a1"}}}}