{"action":"created","comment":{"url":"https://api.github.com/repos/cloudify-cosmo/cloudify-cli/pulls/comments/64772733","id":64772733,"diff_hunk":"@@ -385,16 +394,25 @@ def get_rest_port():\n     return cosmo_wd_settings.get_rest_port()\n \n \n-def get_protocol():\n+def get_rest_protocol():\n+    cosmo_wd_settings = load_cloudify_working_dir_settings()\n+    return cosmo_wd_settings.get_rest_protocol()\n+\n+\n+def get_rest_host():\n+    return get_management_server_ip()\n+\n+\n+def get_rest_server_public_certificate():\n     cosmo_wd_settings = load_cloudify_working_dir_settings()\n-    return cosmo_wd_settings.get_protocol()\n+    return cosmo_wd_settings.get_rest_server_public_certificate()\n \n \n def get_management_server_ip():","path":"cloudify_cli/utils.py","position":86,"original_position":86,"commit_id":"d31784b5440dfbc48a5b810d7d7622fa68bc870f","original_commit_id":"d31784b5440dfbc48a5b810d7d7622fa68bc870f","user":{"login":"dankilman","id":1008577,"avatar_url":"https://avatars.githubusercontent.com/u/1008577?v=3","gravatar_id":"","url":"https://api.github.com/users/dankilman","html_url":"https://github.com/dankilman","followers_url":"https://api.github.com/users/dankilman/followers","following_url":"https://api.github.com/users/dankilman/following{/other_user}","gists_url":"https://api.github.com/users/dankilman/gists{/gist_id}","starred_url":"https://api.github.com/users/dankilman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dankilman/subscriptions","organizations_url":"https://api.github.com/users/dankilman/orgs","repos_url":"https://api.github.com/users/dankilman/repos","events_url":"https://api.github.com/users/dankilman/events{/privacy}","received_events_url":"https://api.github.com/users/dankilman/received_events","type":"User","site_admin":false},"body":"perhaps this function should be renamed to get_rest_host\r\nand have\r\n`get_management_server_ip = get_rest_host` instead of the previous suggestion","created_at":"2016-05-26T16:02:26Z","updated_at":"2016-05-26T16:02:26Z","html_url":"https://github.com/cloudify-cosmo/cloudify-cli/pull/228#discussion_r64772733","pull_request_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-cli/pulls/228","_links":{"self":{"href":"https://api.github.com/repos/cloudify-cosmo/cloudify-cli/pulls/comments/64772733"},"html":{"href":"https://github.com/cloudify-cosmo/cloudify-cli/pull/228#discussion_r64772733"},"pull_request":{"href":"https://api.github.com/repos/cloudify-cosmo/cloudify-cli/pulls/228"}}},"pull_request":{"url":"https://api.github.com/repos/cloudify-cosmo/cloudify-cli/pulls/228","id":50276945,"html_url":"https://github.com/cloudify-cosmo/cloudify-cli/pull/228","diff_url":"https://github.com/cloudify-cosmo/cloudify-cli/pull/228.diff","patch_url":"https://github.com/cloudify-cosmo/cloudify-cli/pull/228.patch","issue_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-cli/issues/228","number":228,"state":"open","locked":false,"title":"Cfy 3691 secure internal requests","user":{"login":"noakup","id":1745412,"avatar_url":"https://avatars.githubusercontent.com/u/1745412?v=3","gravatar_id":"","url":"https://api.github.com/users/noakup","html_url":"https://github.com/noakup","followers_url":"https://api.github.com/users/noakup/followers","following_url":"https://api.github.com/users/noakup/following{/other_user}","gists_url":"https://api.github.com/users/noakup/gists{/gist_id}","starred_url":"https://api.github.com/users/noakup/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/noakup/subscriptions","organizations_url":"https://api.github.com/users/noakup/orgs","repos_url":"https://api.github.com/users/noakup/repos","events_url":"https://api.github.com/users/noakup/events{/privacy}","received_events_url":"https://api.github.com/users/noakup/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-11-10T16:35:37Z","updated_at":"2016-05-26T16:02:26Z","closed_at":null,"merged_at":null,"merge_commit_sha":"62f2d7960b84df0f617e448c8ed266b330b591e9","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-cli/pulls/228/commits","review_comments_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-cli/pulls/228/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/228/comments","statuses_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-cli/statuses/d31784b5440dfbc48a5b810d7d7622fa68bc870f","head":{"label":"cloudify-cosmo:CFY-3691-secure-internal-requests","ref":"CFY-3691-secure-internal-requests","sha":"d31784b5440dfbc48a5b810d7d7622fa68bc870f","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}","deployments_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-cli/deployments","created_at":"2014-04-01T11:12:15Z","updated_at":"2016-05-24T07:47:31Z","pushed_at":"2016-05-26T09:35:28Z","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":25244,"stargazers_count":16,"watchers_count":16,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":29,"mirror_url":null,"open_issues_count":8,"forks":29,"open_issues":8,"watchers":16,"default_branch":"master"}},"base":{"label":"cloudify-cosmo:master","ref":"master","sha":"a49ae7d34c0fd1e56130d0e527547cd191be06f5","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}","deployments_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-cli/deployments","created_at":"2014-04-01T11:12:15Z","updated_at":"2016-05-24T07:47:31Z","pushed_at":"2016-05-26T09:35:28Z","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":25244,"stargazers_count":16,"watchers_count":16,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":29,"mirror_url":null,"open_issues_count":8,"forks":29,"open_issues":8,"watchers":16,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/cloudify-cosmo/cloudify-cli/pulls/228"},"html":{"href":"https://github.com/cloudify-cosmo/cloudify-cli/pull/228"},"issue":{"href":"https://api.github.com/repos/cloudify-cosmo/cloudify-cli/issues/228"},"comments":{"href":"https://api.github.com/repos/cloudify-cosmo/cloudify-cli/issues/228/comments"},"review_comments":{"href":"https://api.github.com/repos/cloudify-cosmo/cloudify-cli/pulls/228/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/228/commits"},"statuses":{"href":"https://api.github.com/repos/cloudify-cosmo/cloudify-cli/statuses/d31784b5440dfbc48a5b810d7d7622fa68bc870f"}}}}
{"actor":{"display_login":"dankilman"}}