{"action":"created","comment":{"url":"https://api.github.com/repos/Azure/azure-cli/pulls/comments/184864421","pull_request_review_id":116147737,"id":184864421,"diff_hunk":"@@ -404,6 +418,42 @@ def _get_linux_fx_version(cmd, resource_group_name, name, slot=None):\n     return site_config.linux_fx_version\n \n \n+def url_validator(url):\n+    try:\n+        result = urlparse(url)\n+        return all([result.scheme, result.netloc, result.path])\n+    except:\n+        return False\n+\n+\n+def _get_linux_multicontainer_config_file(cmd, resource_group_name, name, file_name=None, encoded=True, slot=None):\n+    from base64 import b64encode, b64decode\n+    config_file_bytes = None\n+    if file_name:\n+        if url_validator(file_name):\n+            from urllib.request import urlopen\n+            response = urlopen(file_name)\n+            config_file_bytes = response.read()\n+        else:\n+            with open(file_name) as f:","path":"src/command_modules/azure-cli-appservice/azure/cli/command_modules/appservice/custom.py","position":107,"original_position":107,"commit_id":"68e02275584b985913b91f5c74a62a3fbe8b953e","original_commit_id":"68e02275584b985913b91f5c74a62a3fbe8b953e","user":{"login":"yugangw-msft","id":6014209,"avatar_url":"https://avatars1.githubusercontent.com/u/6014209?v=4","gravatar_id":"","url":"https://api.github.com/users/yugangw-msft","html_url":"https://github.com/yugangw-msft","followers_url":"https://api.github.com/users/yugangw-msft/followers","following_url":"https://api.github.com/users/yugangw-msft/following{/other_user}","gists_url":"https://api.github.com/users/yugangw-msft/gists{/gist_id}","starred_url":"https://api.github.com/users/yugangw-msft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yugangw-msft/subscriptions","organizations_url":"https://api.github.com/users/yugangw-msft/orgs","repos_url":"https://api.github.com/users/yugangw-msft/repos","events_url":"https://api.github.com/users/yugangw-msft/events{/privacy}","received_events_url":"https://api.github.com/users/yugangw-msft/received_events","type":"User","site_admin":false},"body":"since you will encode back in 2 lines below, you are better off just reading the file in binary mode, so why not `with open(file_name, 'rb')`?","created_at":"2018-04-28T20:40:27Z","updated_at":"2018-04-28T20:54:37Z","html_url":"https://github.com/Azure/azure-cli/pull/6255#discussion_r184864421","pull_request_url":"https://api.github.com/repos/Azure/azure-cli/pulls/6255","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/Azure/azure-cli/pulls/comments/184864421"},"html":{"href":"https://github.com/Azure/azure-cli/pull/6255#discussion_r184864421"},"pull_request":{"href":"https://api.github.com/repos/Azure/azure-cli/pulls/6255"}}},"pull_request":{"url":"https://api.github.com/repos/Azure/azure-cli/pulls/6255","id":184798897,"html_url":"https://github.com/Azure/azure-cli/pull/6255","diff_url":"https://github.com/Azure/azure-cli/pull/6255.diff","patch_url":"https://github.com/Azure/azure-cli/pull/6255.patch","issue_url":"https://api.github.com/repos/Azure/azure-cli/issues/6255","number":6255,"state":"open","locked":false,"title":"Websites: Add Multicontainer Capabilities","user":{"login":"LukaszStem","id":20563423,"avatar_url":"https://avatars2.githubusercontent.com/u/20563423?v=4","gravatar_id":"","url":"https://api.github.com/users/LukaszStem","html_url":"https://github.com/LukaszStem","followers_url":"https://api.github.com/users/LukaszStem/followers","following_url":"https://api.github.com/users/LukaszStem/following{/other_user}","gists_url":"https://api.github.com/users/LukaszStem/gists{/gist_id}","starred_url":"https://api.github.com/users/LukaszStem/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LukaszStem/subscriptions","organizations_url":"https://api.github.com/users/LukaszStem/orgs","repos_url":"https://api.github.com/users/LukaszStem/repos","events_url":"https://api.github.com/users/LukaszStem/events{/privacy}","received_events_url":"https://api.github.com/users/LukaszStem/received_events","type":"User","site_admin":false},"body":"---\r\n\r\nThis checklist is used to make sure that common guidelines for a pull request are followed.\r\n\r\n- [x] The PR has modified HISTORY.rst describing any customer-facing, functional changes. Note that this does not include changes only to help content. (see [Modifying change log](https://github.com/Azure/azure-cli/tree/master/doc/authoring_command_modules#modify-change-log)).\r\n\r\n- [x] I adhere to the [Command Guidelines](https://github.com/Azure/azure-cli/blob/dev/doc/command_guidelines.md).\r\n","created_at":"2018-04-28T18:15:24Z","updated_at":"2018-04-28T20:54:37Z","closed_at":null,"merged_at":null,"merge_commit_sha":"22bbcb46a54dcd865605773181736ae090e9e11a","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/Azure/azure-cli/pulls/6255/commits","review_comments_url":"https://api.github.com/repos/Azure/azure-cli/pulls/6255/comments","review_comment_url":"https://api.github.com/repos/Azure/azure-cli/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Azure/azure-cli/issues/6255/comments","statuses_url":"https://api.github.com/repos/Azure/azure-cli/statuses/68e02275584b985913b91f5c74a62a3fbe8b953e","head":{"label":"LukaszStem:multicontainer","ref":"multicontainer","sha":"68e02275584b985913b91f5c74a62a3fbe8b953e","user":{"login":"LukaszStem","id":20563423,"avatar_url":"https://avatars2.githubusercontent.com/u/20563423?v=4","gravatar_id":"","url":"https://api.github.com/users/LukaszStem","html_url":"https://github.com/LukaszStem","followers_url":"https://api.github.com/users/LukaszStem/followers","following_url":"https://api.github.com/users/LukaszStem/following{/other_user}","gists_url":"https://api.github.com/users/LukaszStem/gists{/gist_id}","starred_url":"https://api.github.com/users/LukaszStem/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LukaszStem/subscriptions","organizations_url":"https://api.github.com/users/LukaszStem/orgs","repos_url":"https://api.github.com/users/LukaszStem/repos","events_url":"https://api.github.com/users/LukaszStem/events{/privacy}","received_events_url":"https://api.github.com/users/LukaszStem/received_events","type":"User","site_admin":false},"repo":{"id":107583053,"name":"azure-cli","full_name":"LukaszStem/azure-cli","owner":{"login":"LukaszStem","id":20563423,"avatar_url":"https://avatars2.githubusercontent.com/u/20563423?v=4","gravatar_id":"","url":"https://api.github.com/users/LukaszStem","html_url":"https://github.com/LukaszStem","followers_url":"https://api.github.com/users/LukaszStem/followers","following_url":"https://api.github.com/users/LukaszStem/following{/other_user}","gists_url":"https://api.github.com/users/LukaszStem/gists{/gist_id}","starred_url":"https://api.github.com/users/LukaszStem/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LukaszStem/subscriptions","organizations_url":"https://api.github.com/users/LukaszStem/orgs","repos_url":"https://api.github.com/users/LukaszStem/repos","events_url":"https://api.github.com/users/LukaszStem/events{/privacy}","received_events_url":"https://api.github.com/users/LukaszStem/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/LukaszStem/azure-cli","description":"Command-line tools for Azure.","fork":true,"url":"https://api.github.com/repos/LukaszStem/azure-cli","forks_url":"https://api.github.com/repos/LukaszStem/azure-cli/forks","keys_url":"https://api.github.com/repos/LukaszStem/azure-cli/keys{/key_id}","collaborators_url":"https://api.github.com/repos/LukaszStem/azure-cli/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/LukaszStem/azure-cli/teams","hooks_url":"https://api.github.com/repos/LukaszStem/azure-cli/hooks","issue_events_url":"https://api.github.com/repos/LukaszStem/azure-cli/issues/events{/number}","events_url":"https://api.github.com/repos/LukaszStem/azure-cli/events","assignees_url":"https://api.github.com/repos/LukaszStem/azure-cli/assignees{/user}","branches_url":"https://api.github.com/repos/LukaszStem/azure-cli/branches{/branch}","tags_url":"https://api.github.com/repos/LukaszStem/azure-cli/tags","blobs_url":"https://api.github.com/repos/LukaszStem/azure-cli/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/LukaszStem/azure-cli/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/LukaszStem/azure-cli/git/refs{/sha}","trees_url":"https://api.github.com/repos/LukaszStem/azure-cli/git/trees{/sha}","statuses_url":"https://api.github.com/repos/LukaszStem/azure-cli/statuses/{sha}","languages_url":"https://api.github.com/repos/LukaszStem/azure-cli/languages","stargazers_url":"https://api.github.com/repos/LukaszStem/azure-cli/stargazers","contributors_url":"https://api.github.com/repos/LukaszStem/azure-cli/contributors","subscribers_url":"https://api.github.com/repos/LukaszStem/azure-cli/subscribers","subscription_url":"https://api.github.com/repos/LukaszStem/azure-cli/subscription","commits_url":"https://api.github.com/repos/LukaszStem/azure-cli/commits{/sha}","git_commits_url":"https://api.github.com/repos/LukaszStem/azure-cli/git/commits{/sha}","comments_url":"https://api.github.com/repos/LukaszStem/azure-cli/comments{/number}","issue_comment_url":"https://api.github.com/repos/LukaszStem/azure-cli/issues/comments{/number}","contents_url":"https://api.github.com/repos/LukaszStem/azure-cli/contents/{+path}","compare_url":"https://api.github.com/repos/LukaszStem/azure-cli/compare/{base}...{head}","merges_url":"https://api.github.com/repos/LukaszStem/azure-cli/merges","archive_url":"https://api.github.com/repos/LukaszStem/azure-cli/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/LukaszStem/azure-cli/downloads","issues_url":"https://api.github.com/repos/LukaszStem/azure-cli/issues{/number}","pulls_url":"https://api.github.com/repos/LukaszStem/azure-cli/pulls{/number}","milestones_url":"https://api.github.com/repos/LukaszStem/azure-cli/milestones{/number}","notifications_url":"https://api.github.com/repos/LukaszStem/azure-cli/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/LukaszStem/azure-cli/labels{/name}","releases_url":"https://api.github.com/repos/LukaszStem/azure-cli/releases{/id}","deployments_url":"https://api.github.com/repos/LukaszStem/azure-cli/deployments","created_at":"2017-10-19T18:23:56Z","updated_at":"2018-04-28T05:53:04Z","pushed_at":"2018-04-28T18:41:56Z","git_url":"git://github.com/LukaszStem/azure-cli.git","ssh_url":"git@github.com:LukaszStem/azure-cli.git","clone_url":"https://github.com/LukaszStem/azure-cli.git","svn_url":"https://github.com/LukaszStem/azure-cli","homepage":null,"size":41400,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"other","name":"Other","spdx_id":null,"url":null},"forks":0,"open_issues":0,"watchers":0,"default_branch":"dev"}},"base":{"label":"Azure:dev","ref":"dev","sha":"e4c563b97b7d456a732c5519e94d49586301d909","user":{"login":"Azure","id":6844498,"avatar_url":"https://avatars0.githubusercontent.com/u/6844498?v=4","gravatar_id":"","url":"https://api.github.com/users/Azure","html_url":"https://github.com/Azure","followers_url":"https://api.github.com/users/Azure/followers","following_url":"https://api.github.com/users/Azure/following{/other_user}","gists_url":"https://api.github.com/users/Azure/gists{/gist_id}","starred_url":"https://api.github.com/users/Azure/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Azure/subscriptions","organizations_url":"https://api.github.com/users/Azure/orgs","repos_url":"https://api.github.com/users/Azure/repos","events_url":"https://api.github.com/users/Azure/events{/privacy}","received_events_url":"https://api.github.com/users/Azure/received_events","type":"Organization","site_admin":false},"repo":{"id":51040886,"name":"azure-cli","full_name":"Azure/azure-cli","owner":{"login":"Azure","id":6844498,"avatar_url":"https://avatars0.githubusercontent.com/u/6844498?v=4","gravatar_id":"","url":"https://api.github.com/users/Azure","html_url":"https://github.com/Azure","followers_url":"https://api.github.com/users/Azure/followers","following_url":"https://api.github.com/users/Azure/following{/other_user}","gists_url":"https://api.github.com/users/Azure/gists{/gist_id}","starred_url":"https://api.github.com/users/Azure/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Azure/subscriptions","organizations_url":"https://api.github.com/users/Azure/orgs","repos_url":"https://api.github.com/users/Azure/repos","events_url":"https://api.github.com/users/Azure/events{/privacy}","received_events_url":"https://api.github.com/users/Azure/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Azure/azure-cli","description":"Command-line tools for Azure.","fork":false,"url":"https://api.github.com/repos/Azure/azure-cli","forks_url":"https://api.github.com/repos/Azure/azure-cli/forks","keys_url":"https://api.github.com/repos/Azure/azure-cli/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Azure/azure-cli/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Azure/azure-cli/teams","hooks_url":"https://api.github.com/repos/Azure/azure-cli/hooks","issue_events_url":"https://api.github.com/repos/Azure/azure-cli/issues/events{/number}","events_url":"https://api.github.com/repos/Azure/azure-cli/events","assignees_url":"https://api.github.com/repos/Azure/azure-cli/assignees{/user}","branches_url":"https://api.github.com/repos/Azure/azure-cli/branches{/branch}","tags_url":"https://api.github.com/repos/Azure/azure-cli/tags","blobs_url":"https://api.github.com/repos/Azure/azure-cli/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Azure/azure-cli/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Azure/azure-cli/git/refs{/sha}","trees_url":"https://api.github.com/repos/Azure/azure-cli/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Azure/azure-cli/statuses/{sha}","languages_url":"https://api.github.com/repos/Azure/azure-cli/languages","stargazers_url":"https://api.github.com/repos/Azure/azure-cli/stargazers","contributors_url":"https://api.github.com/repos/Azure/azure-cli/contributors","subscribers_url":"https://api.github.com/repos/Azure/azure-cli/subscribers","subscription_url":"https://api.github.com/repos/Azure/azure-cli/subscription","commits_url":"https://api.github.com/repos/Azure/azure-cli/commits{/sha}","git_commits_url":"https://api.github.com/repos/Azure/azure-cli/git/commits{/sha}","comments_url":"https://api.github.com/repos/Azure/azure-cli/comments{/number}","issue_comment_url":"https://api.github.com/repos/Azure/azure-cli/issues/comments{/number}","contents_url":"https://api.github.com/repos/Azure/azure-cli/contents/{+path}","compare_url":"https://api.github.com/repos/Azure/azure-cli/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Azure/azure-cli/merges","archive_url":"https://api.github.com/repos/Azure/azure-cli/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Azure/azure-cli/downloads","issues_url":"https://api.github.com/repos/Azure/azure-cli/issues{/number}","pulls_url":"https://api.github.com/repos/Azure/azure-cli/pulls{/number}","milestones_url":"https://api.github.com/repos/Azure/azure-cli/milestones{/number}","notifications_url":"https://api.github.com/repos/Azure/azure-cli/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Azure/azure-cli/labels{/name}","releases_url":"https://api.github.com/repos/Azure/azure-cli/releases{/id}","deployments_url":"https://api.github.com/repos/Azure/azure-cli/deployments","created_at":"2016-02-04T00:21:51Z","updated_at":"2018-04-28T04:31:42Z","pushed_at":"2018-04-28T20:28:26Z","git_url":"git://github.com/Azure/azure-cli.git","ssh_url":"git@github.com:Azure/azure-cli.git","clone_url":"https://github.com/Azure/azure-cli.git","svn_url":"https://github.com/Azure/azure-cli","homepage":null,"size":41310,"stargazers_count":727,"watchers_count":727,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":449,"mirror_url":null,"archived":false,"open_issues_count":701,"license":{"key":"other","name":"Other","spdx_id":null,"url":null},"forks":449,"open_issues":701,"watchers":727,"default_branch":"dev"}},"_links":{"self":{"href":"https://api.github.com/repos/Azure/azure-cli/pulls/6255"},"html":{"href":"https://github.com/Azure/azure-cli/pull/6255"},"issue":{"href":"https://api.github.com/repos/Azure/azure-cli/issues/6255"},"comments":{"href":"https://api.github.com/repos/Azure/azure-cli/issues/6255/comments"},"review_comments":{"href":"https://api.github.com/repos/Azure/azure-cli/pulls/6255/comments"},"review_comment":{"href":"https://api.github.com/repos/Azure/azure-cli/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Azure/azure-cli/pulls/6255/commits"},"statuses":{"href":"https://api.github.com/repos/Azure/azure-cli/statuses/68e02275584b985913b91f5c74a62a3fbe8b953e"}},"author_association":"MEMBER"}}
{"actor":{"display_login":"yugangw-msft"}}