{"action":"created","comment":{"url":"https://api.github.com/repos/xenserver/xenadmin/pulls/comments/81808717","pull_request_review_id":2723740,"id":81808717,"diff_hunk":"@@ -0,0 +1,121 @@\n+﻿/* Copyright (c) Citrix Systems Inc. \r\n+ * All rights reserved. \r\n+ * \r\n+ * Redistribution and use in source and binary forms, \r\n+ * with or without modification, are permitted provided \r\n+ * that the following conditions are met: \r\n+ * \r\n+ * *   Redistributions of source code must retain the above \r\n+ *     copyright notice, this list of conditions and the \r\n+ *     following disclaimer. \r\n+ * *   Redistributions in binary form must reproduce the above \r\n+ *     copyright notice, this list of conditions and the \r\n+ *     following disclaimer in the documentation and/or other \r\n+ *     materials provided with the distribution. \r\n+ * \r\n+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND \r\n+ * CONTRIBUTORS \"AS IS\" AND ANY EXPRESS OR IMPLIED WARRANTIES, \r\n+ * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF \r\n+ * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE \r\n+ * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR \r\n+ * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, \r\n+ * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, \r\n+ * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR \r\n+ * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS \r\n+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, \r\n+ * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING \r\n+ * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE \r\n+ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF \r\n+ * SUCH DAMAGE.\r\n+ */\r\n+\r\n+using System;\r\n+using System.Collections.Generic;\r\n+using System.IO;\r\n+using XenAPI;\r\n+using XenAdmin.Network;\r\n+using System.Linq;\r\n+\r\n+\r\n+namespace XenAdmin.Actions\r\n+{\r\n+    public class ApplyUpdateAction : AsyncAction\r\n+    {\r\n+        private static readonly log4net.ILog log = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType);\r\n+\r\n+        private readonly List<Pool_update> updates;\r\n+        private readonly List<Host> hosts;\r\n+\r\n+        private string output = \"\";\r","path":"XenModel/Actions/Pool_update/ApplyUpdateAction.cs","position":49,"original_position":49,"commit_id":"5966c5399abf081f27c8e4cced79249734e13537","original_commit_id":"7d62621dd3a13010039fa22d2245d366cda4d64b","user":{"login":"MihaelaStoica","id":4976784,"avatar_url":"https://avatars.githubusercontent.com/u/4976784?v=3","gravatar_id":"","url":"https://api.github.com/users/MihaelaStoica","html_url":"https://github.com/MihaelaStoica","followers_url":"https://api.github.com/users/MihaelaStoica/followers","following_url":"https://api.github.com/users/MihaelaStoica/following{/other_user}","gists_url":"https://api.github.com/users/MihaelaStoica/gists{/gist_id}","starred_url":"https://api.github.com/users/MihaelaStoica/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MihaelaStoica/subscriptions","organizations_url":"https://api.github.com/users/MihaelaStoica/orgs","repos_url":"https://api.github.com/users/MihaelaStoica/repos","events_url":"https://api.github.com/users/MihaelaStoica/events{/privacy}","received_events_url":"https://api.github.com/users/MihaelaStoica/received_events","type":"User","site_admin":false},"body":"Let's remove this, it's not used","created_at":"2016-10-04T17:22:59Z","updated_at":"2016-10-04T17:40:23Z","html_url":"https://github.com/xenserver/xenadmin/pull/1194#discussion_r81808717","pull_request_url":"https://api.github.com/repos/xenserver/xenadmin/pulls/1194","_links":{"self":{"href":"https://api.github.com/repos/xenserver/xenadmin/pulls/comments/81808717"},"html":{"href":"https://github.com/xenserver/xenadmin/pull/1194#discussion_r81808717"},"pull_request":{"href":"https://api.github.com/repos/xenserver/xenadmin/pulls/1194"}}},"pull_request":{"url":"https://api.github.com/repos/xenserver/xenadmin/pulls/1194","id":87900177,"html_url":"https://github.com/xenserver/xenadmin/pull/1194","diff_url":"https://github.com/xenserver/xenadmin/pull/1194.diff","patch_url":"https://github.com/xenserver/xenadmin/pull/1194.patch","issue_url":"https://api.github.com/repos/xenserver/xenadmin/issues/1194","number":1194,"state":"open","locked":false,"title":" CP-17848: Apply hotfixes using new API calls","user":{"login":"GaborApatiNagy","id":6017976,"avatar_url":"https://avatars.githubusercontent.com/u/6017976?v=3","gravatar_id":"","url":"https://api.github.com/users/GaborApatiNagy","html_url":"https://github.com/GaborApatiNagy","followers_url":"https://api.github.com/users/GaborApatiNagy/followers","following_url":"https://api.github.com/users/GaborApatiNagy/following{/other_user}","gists_url":"https://api.github.com/users/GaborApatiNagy/gists{/gist_id}","starred_url":"https://api.github.com/users/GaborApatiNagy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GaborApatiNagy/subscriptions","organizations_url":"https://api.github.com/users/GaborApatiNagy/orgs","repos_url":"https://api.github.com/users/GaborApatiNagy/repos","events_url":"https://api.github.com/users/GaborApatiNagy/events{/privacy}","received_events_url":"https://api.github.com/users/GaborApatiNagy/received_events","type":"User","site_admin":false},"body":"Using new XAPI functionality in Install Update Wizard required by the new packaging format (ISO updates)","created_at":"2016-10-04T14:01:55Z","updated_at":"2016-10-04T17:40:23Z","closed_at":null,"merged_at":null,"merge_commit_sha":"9e248329b1aceecafb6fa81820e0ed1e7a621e02","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/xenserver/xenadmin/pulls/1194/commits","review_comments_url":"https://api.github.com/repos/xenserver/xenadmin/pulls/1194/comments","review_comment_url":"https://api.github.com/repos/xenserver/xenadmin/pulls/comments{/number}","comments_url":"https://api.github.com/repos/xenserver/xenadmin/issues/1194/comments","statuses_url":"https://api.github.com/repos/xenserver/xenadmin/statuses/5966c5399abf081f27c8e4cced79249734e13537","head":{"label":"GaborApatiNagy:CAR-2245","ref":"CAR-2245","sha":"5966c5399abf081f27c8e4cced79249734e13537","user":{"login":"GaborApatiNagy","id":6017976,"avatar_url":"https://avatars.githubusercontent.com/u/6017976?v=3","gravatar_id":"","url":"https://api.github.com/users/GaborApatiNagy","html_url":"https://github.com/GaborApatiNagy","followers_url":"https://api.github.com/users/GaborApatiNagy/followers","following_url":"https://api.github.com/users/GaborApatiNagy/following{/other_user}","gists_url":"https://api.github.com/users/GaborApatiNagy/gists{/gist_id}","starred_url":"https://api.github.com/users/GaborApatiNagy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GaborApatiNagy/subscriptions","organizations_url":"https://api.github.com/users/GaborApatiNagy/orgs","repos_url":"https://api.github.com/users/GaborApatiNagy/repos","events_url":"https://api.github.com/users/GaborApatiNagy/events{/privacy}","received_events_url":"https://api.github.com/users/GaborApatiNagy/received_events","type":"User","site_admin":false},"repo":{"id":15899182,"name":"xenadmin","full_name":"GaborApatiNagy/xenadmin","owner":{"login":"GaborApatiNagy","id":6017976,"avatar_url":"https://avatars.githubusercontent.com/u/6017976?v=3","gravatar_id":"","url":"https://api.github.com/users/GaborApatiNagy","html_url":"https://github.com/GaborApatiNagy","followers_url":"https://api.github.com/users/GaborApatiNagy/followers","following_url":"https://api.github.com/users/GaborApatiNagy/following{/other_user}","gists_url":"https://api.github.com/users/GaborApatiNagy/gists{/gist_id}","starred_url":"https://api.github.com/users/GaborApatiNagy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GaborApatiNagy/subscriptions","organizations_url":"https://api.github.com/users/GaborApatiNagy/orgs","repos_url":"https://api.github.com/users/GaborApatiNagy/repos","events_url":"https://api.github.com/users/GaborApatiNagy/events{/privacy}","received_events_url":"https://api.github.com/users/GaborApatiNagy/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/GaborApatiNagy/xenadmin","description":"XenCenter, the Windows management console for XenServer","fork":true,"url":"https://api.github.com/repos/GaborApatiNagy/xenadmin","forks_url":"https://api.github.com/repos/GaborApatiNagy/xenadmin/forks","keys_url":"https://api.github.com/repos/GaborApatiNagy/xenadmin/keys{/key_id}","collaborators_url":"https://api.github.com/repos/GaborApatiNagy/xenadmin/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/GaborApatiNagy/xenadmin/teams","hooks_url":"https://api.github.com/repos/GaborApatiNagy/xenadmin/hooks","issue_events_url":"https://api.github.com/repos/GaborApatiNagy/xenadmin/issues/events{/number}","events_url":"https://api.github.com/repos/GaborApatiNagy/xenadmin/events","assignees_url":"https://api.github.com/repos/GaborApatiNagy/xenadmin/assignees{/user}","branches_url":"https://api.github.com/repos/GaborApatiNagy/xenadmin/branches{/branch}","tags_url":"https://api.github.com/repos/GaborApatiNagy/xenadmin/tags","blobs_url":"https://api.github.com/repos/GaborApatiNagy/xenadmin/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/GaborApatiNagy/xenadmin/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/GaborApatiNagy/xenadmin/git/refs{/sha}","trees_url":"https://api.github.com/repos/GaborApatiNagy/xenadmin/git/trees{/sha}","statuses_url":"https://api.github.com/repos/GaborApatiNagy/xenadmin/statuses/{sha}","languages_url":"https://api.github.com/repos/GaborApatiNagy/xenadmin/languages","stargazers_url":"https://api.github.com/repos/GaborApatiNagy/xenadmin/stargazers","contributors_url":"https://api.github.com/repos/GaborApatiNagy/xenadmin/contributors","subscribers_url":"https://api.github.com/repos/GaborApatiNagy/xenadmin/subscribers","subscription_url":"https://api.github.com/repos/GaborApatiNagy/xenadmin/subscription","commits_url":"https://api.github.com/repos/GaborApatiNagy/xenadmin/commits{/sha}","git_commits_url":"https://api.github.com/repos/GaborApatiNagy/xenadmin/git/commits{/sha}","comments_url":"https://api.github.com/repos/GaborApatiNagy/xenadmin/comments{/number}","issue_comment_url":"https://api.github.com/repos/GaborApatiNagy/xenadmin/issues/comments{/number}","contents_url":"https://api.github.com/repos/GaborApatiNagy/xenadmin/contents/{+path}","compare_url":"https://api.github.com/repos/GaborApatiNagy/xenadmin/compare/{base}...{head}","merges_url":"https://api.github.com/repos/GaborApatiNagy/xenadmin/merges","archive_url":"https://api.github.com/repos/GaborApatiNagy/xenadmin/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/GaborApatiNagy/xenadmin/downloads","issues_url":"https://api.github.com/repos/GaborApatiNagy/xenadmin/issues{/number}","pulls_url":"https://api.github.com/repos/GaborApatiNagy/xenadmin/pulls{/number}","milestones_url":"https://api.github.com/repos/GaborApatiNagy/xenadmin/milestones{/number}","notifications_url":"https://api.github.com/repos/GaborApatiNagy/xenadmin/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/GaborApatiNagy/xenadmin/labels{/name}","releases_url":"https://api.github.com/repos/GaborApatiNagy/xenadmin/releases{/id}","deployments_url":"https://api.github.com/repos/GaborApatiNagy/xenadmin/deployments","created_at":"2014-01-14T10:41:45Z","updated_at":"2015-01-15T13:47:30Z","pushed_at":"2016-10-04T14:27:24Z","git_url":"git://github.com/GaborApatiNagy/xenadmin.git","ssh_url":"git@github.com:GaborApatiNagy/xenadmin.git","clone_url":"https://github.com/GaborApatiNagy/xenadmin.git","svn_url":"https://github.com/GaborApatiNagy/xenadmin","homepage":"","size":108065,"stargazers_count":0,"watchers_count":0,"language":"C#","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":"xenserver:CAR-2245","ref":"CAR-2245","sha":"da2d7dcdd6f7ba80276bff5501604be946198037","user":{"login":"xenserver","id":4669806,"avatar_url":"https://avatars.githubusercontent.com/u/4669806?v=3","gravatar_id":"","url":"https://api.github.com/users/xenserver","html_url":"https://github.com/xenserver","followers_url":"https://api.github.com/users/xenserver/followers","following_url":"https://api.github.com/users/xenserver/following{/other_user}","gists_url":"https://api.github.com/users/xenserver/gists{/gist_id}","starred_url":"https://api.github.com/users/xenserver/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xenserver/subscriptions","organizations_url":"https://api.github.com/users/xenserver/orgs","repos_url":"https://api.github.com/users/xenserver/repos","events_url":"https://api.github.com/users/xenserver/events{/privacy}","received_events_url":"https://api.github.com/users/xenserver/received_events","type":"Organization","site_admin":false},"repo":{"id":10915984,"name":"xenadmin","full_name":"xenserver/xenadmin","owner":{"login":"xenserver","id":4669806,"avatar_url":"https://avatars.githubusercontent.com/u/4669806?v=3","gravatar_id":"","url":"https://api.github.com/users/xenserver","html_url":"https://github.com/xenserver","followers_url":"https://api.github.com/users/xenserver/followers","following_url":"https://api.github.com/users/xenserver/following{/other_user}","gists_url":"https://api.github.com/users/xenserver/gists{/gist_id}","starred_url":"https://api.github.com/users/xenserver/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xenserver/subscriptions","organizations_url":"https://api.github.com/users/xenserver/orgs","repos_url":"https://api.github.com/users/xenserver/repos","events_url":"https://api.github.com/users/xenserver/events{/privacy}","received_events_url":"https://api.github.com/users/xenserver/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/xenserver/xenadmin","description":"XenCenter, the Windows management console for XenServer","fork":false,"url":"https://api.github.com/repos/xenserver/xenadmin","forks_url":"https://api.github.com/repos/xenserver/xenadmin/forks","keys_url":"https://api.github.com/repos/xenserver/xenadmin/keys{/key_id}","collaborators_url":"https://api.github.com/repos/xenserver/xenadmin/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/xenserver/xenadmin/teams","hooks_url":"https://api.github.com/repos/xenserver/xenadmin/hooks","issue_events_url":"https://api.github.com/repos/xenserver/xenadmin/issues/events{/number}","events_url":"https://api.github.com/repos/xenserver/xenadmin/events","assignees_url":"https://api.github.com/repos/xenserver/xenadmin/assignees{/user}","branches_url":"https://api.github.com/repos/xenserver/xenadmin/branches{/branch}","tags_url":"https://api.github.com/repos/xenserver/xenadmin/tags","blobs_url":"https://api.github.com/repos/xenserver/xenadmin/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/xenserver/xenadmin/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/xenserver/xenadmin/git/refs{/sha}","trees_url":"https://api.github.com/repos/xenserver/xenadmin/git/trees{/sha}","statuses_url":"https://api.github.com/repos/xenserver/xenadmin/statuses/{sha}","languages_url":"https://api.github.com/repos/xenserver/xenadmin/languages","stargazers_url":"https://api.github.com/repos/xenserver/xenadmin/stargazers","contributors_url":"https://api.github.com/repos/xenserver/xenadmin/contributors","subscribers_url":"https://api.github.com/repos/xenserver/xenadmin/subscribers","subscription_url":"https://api.github.com/repos/xenserver/xenadmin/subscription","commits_url":"https://api.github.com/repos/xenserver/xenadmin/commits{/sha}","git_commits_url":"https://api.github.com/repos/xenserver/xenadmin/git/commits{/sha}","comments_url":"https://api.github.com/repos/xenserver/xenadmin/comments{/number}","issue_comment_url":"https://api.github.com/repos/xenserver/xenadmin/issues/comments{/number}","contents_url":"https://api.github.com/repos/xenserver/xenadmin/contents/{+path}","compare_url":"https://api.github.com/repos/xenserver/xenadmin/compare/{base}...{head}","merges_url":"https://api.github.com/repos/xenserver/xenadmin/merges","archive_url":"https://api.github.com/repos/xenserver/xenadmin/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/xenserver/xenadmin/downloads","issues_url":"https://api.github.com/repos/xenserver/xenadmin/issues{/number}","pulls_url":"https://api.github.com/repos/xenserver/xenadmin/pulls{/number}","milestones_url":"https://api.github.com/repos/xenserver/xenadmin/milestones{/number}","notifications_url":"https://api.github.com/repos/xenserver/xenadmin/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/xenserver/xenadmin/labels{/name}","releases_url":"https://api.github.com/repos/xenserver/xenadmin/releases{/id}","deployments_url":"https://api.github.com/repos/xenserver/xenadmin/deployments","created_at":"2013-06-24T18:10:24Z","updated_at":"2016-09-23T16:08:35Z","pushed_at":"2016-10-04T14:27:25Z","git_url":"git://github.com/xenserver/xenadmin.git","ssh_url":"git@github.com:xenserver/xenadmin.git","clone_url":"https://github.com/xenserver/xenadmin.git","svn_url":"https://github.com/xenserver/xenadmin","homepage":"","size":120302,"stargazers_count":121,"watchers_count":121,"language":"C#","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":90,"mirror_url":null,"open_issues_count":12,"forks":90,"open_issues":12,"watchers":121,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/xenserver/xenadmin/pulls/1194"},"html":{"href":"https://github.com/xenserver/xenadmin/pull/1194"},"issue":{"href":"https://api.github.com/repos/xenserver/xenadmin/issues/1194"},"comments":{"href":"https://api.github.com/repos/xenserver/xenadmin/issues/1194/comments"},"review_comments":{"href":"https://api.github.com/repos/xenserver/xenadmin/pulls/1194/comments"},"review_comment":{"href":"https://api.github.com/repos/xenserver/xenadmin/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/xenserver/xenadmin/pulls/1194/commits"},"statuses":{"href":"https://api.github.com/repos/xenserver/xenadmin/statuses/5966c5399abf081f27c8e4cced79249734e13537"}}}}
{"actor":{"display_login":"MihaelaStoica"}}