{"action":"created","comment":{"url":"https://api.github.com/repos/ManageIQ/ovirt/pulls/comments/37986720","id":37986720,"diff_hunk":"@@ -80,6 +80,18 @@ def move(storage_domain)\n       action['href']\n     end\n \n+    def boot_order=(devices)\n+      devices = [ devices ].flatten\n+      update! do |xml|\n+        xml.os do\n+          devices.each do |d|\n+            xml.boot(:dev => d)\n+          end\n+        end\n+        xml.memory self[:memory]  # HACK: RHEVM BUG: RHEVM resets it to 10GB, unless we set it","path":"lib/ovirt/vm.rb","position":12,"original_position":12,"commit_id":"0693f5b50899cfeba1616d84c032bd75f81751d4","original_commit_id":"0693f5b50899cfeba1616d84c032bd75f81751d4","user":{"login":"brandondunne","id":651659,"avatar_url":"https://avatars.githubusercontent.com/u/651659?v=3","gravatar_id":"","url":"https://api.github.com/users/brandondunne","html_url":"https://github.com/brandondunne","followers_url":"https://api.github.com/users/brandondunne/followers","following_url":"https://api.github.com/users/brandondunne/following{/other_user}","gists_url":"https://api.github.com/users/brandondunne/gists{/gist_id}","starred_url":"https://api.github.com/users/brandondunne/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brandondunne/subscriptions","organizations_url":"https://api.github.com/users/brandondunne/orgs","repos_url":"https://api.github.com/users/brandondunne/repos","events_url":"https://api.github.com/users/brandondunne/events{/privacy}","received_events_url":"https://api.github.com/users/brandondunne/received_events","type":"User","site_admin":false},"body":"Is this necessary?  I didn't see any problems in my testing against v3.3 or v3.4.  I don't remember if this problem was in updating specific attributes or if it was version dependent.","created_at":"2015-08-26T14:18:09Z","updated_at":"2015-08-26T14:18:09Z","html_url":"https://github.com/ManageIQ/ovirt/pull/37#discussion_r37986720","pull_request_url":"https://api.github.com/repos/ManageIQ/ovirt/pulls/37","_links":{"self":{"href":"https://api.github.com/repos/ManageIQ/ovirt/pulls/comments/37986720"},"html":{"href":"https://github.com/ManageIQ/ovirt/pull/37#discussion_r37986720"},"pull_request":{"href":"https://api.github.com/repos/ManageIQ/ovirt/pulls/37"}}},"pull_request":{"url":"https://api.github.com/repos/ManageIQ/ovirt/pulls/37","id":43252591,"html_url":"https://github.com/ManageIQ/ovirt/pull/37","diff_url":"https://github.com/ManageIQ/ovirt/pull/37.diff","patch_url":"https://github.com/ManageIQ/ovirt/pull/37.patch","issue_url":"https://api.github.com/repos/ManageIQ/ovirt/issues/37","number":37,"state":"open","locked":false,"title":"Add ability to set the boot order on vm","user":{"login":"ChrisPortman","id":1924479,"avatar_url":"https://avatars.githubusercontent.com/u/1924479?v=3","gravatar_id":"","url":"https://api.github.com/users/ChrisPortman","html_url":"https://github.com/ChrisPortman","followers_url":"https://api.github.com/users/ChrisPortman/followers","following_url":"https://api.github.com/users/ChrisPortman/following{/other_user}","gists_url":"https://api.github.com/users/ChrisPortman/gists{/gist_id}","starred_url":"https://api.github.com/users/ChrisPortman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ChrisPortman/subscriptions","organizations_url":"https://api.github.com/users/ChrisPortman/orgs","repos_url":"https://api.github.com/users/ChrisPortman/repos","events_url":"https://api.github.com/users/ChrisPortman/events{/privacy}","received_events_url":"https://api.github.com/users/ChrisPortman/received_events","type":"User","site_admin":false},"body":"Add boot_order=(devices) method to vm class.  Accepts an array of boot options e.g:\r\n  [ :network, :cdrom, :hd ]","created_at":"2015-08-25T06:06:12Z","updated_at":"2015-08-26T14:18:09Z","closed_at":null,"merged_at":null,"merge_commit_sha":"7e5cb5dcf6dc9c728b9c6f770f1ea38b0ab5a591","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/ManageIQ/ovirt/pulls/37/commits","review_comments_url":"https://api.github.com/repos/ManageIQ/ovirt/pulls/37/comments","review_comment_url":"https://api.github.com/repos/ManageIQ/ovirt/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ManageIQ/ovirt/issues/37/comments","statuses_url":"https://api.github.com/repos/ManageIQ/ovirt/statuses/0693f5b50899cfeba1616d84c032bd75f81751d4","head":{"label":"ChrisPortman:boot_order","ref":"boot_order","sha":"0693f5b50899cfeba1616d84c032bd75f81751d4","user":{"login":"ChrisPortman","id":1924479,"avatar_url":"https://avatars.githubusercontent.com/u/1924479?v=3","gravatar_id":"","url":"https://api.github.com/users/ChrisPortman","html_url":"https://github.com/ChrisPortman","followers_url":"https://api.github.com/users/ChrisPortman/followers","following_url":"https://api.github.com/users/ChrisPortman/following{/other_user}","gists_url":"https://api.github.com/users/ChrisPortman/gists{/gist_id}","starred_url":"https://api.github.com/users/ChrisPortman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ChrisPortman/subscriptions","organizations_url":"https://api.github.com/users/ChrisPortman/orgs","repos_url":"https://api.github.com/users/ChrisPortman/repos","events_url":"https://api.github.com/users/ChrisPortman/events{/privacy}","received_events_url":"https://api.github.com/users/ChrisPortman/received_events","type":"User","site_admin":false},"repo":{"id":41346017,"name":"ovirt","full_name":"ChrisPortman/ovirt","owner":{"login":"ChrisPortman","id":1924479,"avatar_url":"https://avatars.githubusercontent.com/u/1924479?v=3","gravatar_id":"","url":"https://api.github.com/users/ChrisPortman","html_url":"https://github.com/ChrisPortman","followers_url":"https://api.github.com/users/ChrisPortman/followers","following_url":"https://api.github.com/users/ChrisPortman/following{/other_user}","gists_url":"https://api.github.com/users/ChrisPortman/gists{/gist_id}","starred_url":"https://api.github.com/users/ChrisPortman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ChrisPortman/subscriptions","organizations_url":"https://api.github.com/users/ChrisPortman/orgs","repos_url":"https://api.github.com/users/ChrisPortman/repos","events_url":"https://api.github.com/users/ChrisPortman/events{/privacy}","received_events_url":"https://api.github.com/users/ChrisPortman/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ChrisPortman/ovirt","description":"Ovirt provides a simple Object Oriented interface to the REST API of oVirt and RHEV-M servers","fork":true,"url":"https://api.github.com/repos/ChrisPortman/ovirt","forks_url":"https://api.github.com/repos/ChrisPortman/ovirt/forks","keys_url":"https://api.github.com/repos/ChrisPortman/ovirt/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ChrisPortman/ovirt/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ChrisPortman/ovirt/teams","hooks_url":"https://api.github.com/repos/ChrisPortman/ovirt/hooks","issue_events_url":"https://api.github.com/repos/ChrisPortman/ovirt/issues/events{/number}","events_url":"https://api.github.com/repos/ChrisPortman/ovirt/events","assignees_url":"https://api.github.com/repos/ChrisPortman/ovirt/assignees{/user}","branches_url":"https://api.github.com/repos/ChrisPortman/ovirt/branches{/branch}","tags_url":"https://api.github.com/repos/ChrisPortman/ovirt/tags","blobs_url":"https://api.github.com/repos/ChrisPortman/ovirt/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ChrisPortman/ovirt/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ChrisPortman/ovirt/git/refs{/sha}","trees_url":"https://api.github.com/repos/ChrisPortman/ovirt/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ChrisPortman/ovirt/statuses/{sha}","languages_url":"https://api.github.com/repos/ChrisPortman/ovirt/languages","stargazers_url":"https://api.github.com/repos/ChrisPortman/ovirt/stargazers","contributors_url":"https://api.github.com/repos/ChrisPortman/ovirt/contributors","subscribers_url":"https://api.github.com/repos/ChrisPortman/ovirt/subscribers","subscription_url":"https://api.github.com/repos/ChrisPortman/ovirt/subscription","commits_url":"https://api.github.com/repos/ChrisPortman/ovirt/commits{/sha}","git_commits_url":"https://api.github.com/repos/ChrisPortman/ovirt/git/commits{/sha}","comments_url":"https://api.github.com/repos/ChrisPortman/ovirt/comments{/number}","issue_comment_url":"https://api.github.com/repos/ChrisPortman/ovirt/issues/comments{/number}","contents_url":"https://api.github.com/repos/ChrisPortman/ovirt/contents/{+path}","compare_url":"https://api.github.com/repos/ChrisPortman/ovirt/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ChrisPortman/ovirt/merges","archive_url":"https://api.github.com/repos/ChrisPortman/ovirt/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ChrisPortman/ovirt/downloads","issues_url":"https://api.github.com/repos/ChrisPortman/ovirt/issues{/number}","pulls_url":"https://api.github.com/repos/ChrisPortman/ovirt/pulls{/number}","milestones_url":"https://api.github.com/repos/ChrisPortman/ovirt/milestones{/number}","notifications_url":"https://api.github.com/repos/ChrisPortman/ovirt/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ChrisPortman/ovirt/labels{/name}","releases_url":"https://api.github.com/repos/ChrisPortman/ovirt/releases{/id}","created_at":"2015-08-25T06:04:03Z","updated_at":"2015-08-25T06:04:03Z","pushed_at":"2015-08-25T06:04:49Z","git_url":"git://github.com/ChrisPortman/ovirt.git","ssh_url":"git@github.com:ChrisPortman/ovirt.git","clone_url":"https://github.com/ChrisPortman/ovirt.git","svn_url":"https://github.com/ChrisPortman/ovirt","homepage":"","size":236,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":false,"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":"ManageIQ:master","ref":"master","sha":"b0a56a68e63d55c71b11bc15a18e24bb17a06ce1","user":{"login":"ManageIQ","id":1125575,"avatar_url":"https://avatars.githubusercontent.com/u/1125575?v=3","gravatar_id":"","url":"https://api.github.com/users/ManageIQ","html_url":"https://github.com/ManageIQ","followers_url":"https://api.github.com/users/ManageIQ/followers","following_url":"https://api.github.com/users/ManageIQ/following{/other_user}","gists_url":"https://api.github.com/users/ManageIQ/gists{/gist_id}","starred_url":"https://api.github.com/users/ManageIQ/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ManageIQ/subscriptions","organizations_url":"https://api.github.com/users/ManageIQ/orgs","repos_url":"https://api.github.com/users/ManageIQ/repos","events_url":"https://api.github.com/users/ManageIQ/events{/privacy}","received_events_url":"https://api.github.com/users/ManageIQ/received_events","type":"Organization","site_admin":false},"repo":{"id":24246824,"name":"ovirt","full_name":"ManageIQ/ovirt","owner":{"login":"ManageIQ","id":1125575,"avatar_url":"https://avatars.githubusercontent.com/u/1125575?v=3","gravatar_id":"","url":"https://api.github.com/users/ManageIQ","html_url":"https://github.com/ManageIQ","followers_url":"https://api.github.com/users/ManageIQ/followers","following_url":"https://api.github.com/users/ManageIQ/following{/other_user}","gists_url":"https://api.github.com/users/ManageIQ/gists{/gist_id}","starred_url":"https://api.github.com/users/ManageIQ/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ManageIQ/subscriptions","organizations_url":"https://api.github.com/users/ManageIQ/orgs","repos_url":"https://api.github.com/users/ManageIQ/repos","events_url":"https://api.github.com/users/ManageIQ/events{/privacy}","received_events_url":"https://api.github.com/users/ManageIQ/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ManageIQ/ovirt","description":"Ovirt provides a simple Object Oriented interface to the REST API of oVirt and RHEV-M servers","fork":false,"url":"https://api.github.com/repos/ManageIQ/ovirt","forks_url":"https://api.github.com/repos/ManageIQ/ovirt/forks","keys_url":"https://api.github.com/repos/ManageIQ/ovirt/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ManageIQ/ovirt/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ManageIQ/ovirt/teams","hooks_url":"https://api.github.com/repos/ManageIQ/ovirt/hooks","issue_events_url":"https://api.github.com/repos/ManageIQ/ovirt/issues/events{/number}","events_url":"https://api.github.com/repos/ManageIQ/ovirt/events","assignees_url":"https://api.github.com/repos/ManageIQ/ovirt/assignees{/user}","branches_url":"https://api.github.com/repos/ManageIQ/ovirt/branches{/branch}","tags_url":"https://api.github.com/repos/ManageIQ/ovirt/tags","blobs_url":"https://api.github.com/repos/ManageIQ/ovirt/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ManageIQ/ovirt/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ManageIQ/ovirt/git/refs{/sha}","trees_url":"https://api.github.com/repos/ManageIQ/ovirt/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ManageIQ/ovirt/statuses/{sha}","languages_url":"https://api.github.com/repos/ManageIQ/ovirt/languages","stargazers_url":"https://api.github.com/repos/ManageIQ/ovirt/stargazers","contributors_url":"https://api.github.com/repos/ManageIQ/ovirt/contributors","subscribers_url":"https://api.github.com/repos/ManageIQ/ovirt/subscribers","subscription_url":"https://api.github.com/repos/ManageIQ/ovirt/subscription","commits_url":"https://api.github.com/repos/ManageIQ/ovirt/commits{/sha}","git_commits_url":"https://api.github.com/repos/ManageIQ/ovirt/git/commits{/sha}","comments_url":"https://api.github.com/repos/ManageIQ/ovirt/comments{/number}","issue_comment_url":"https://api.github.com/repos/ManageIQ/ovirt/issues/comments{/number}","contents_url":"https://api.github.com/repos/ManageIQ/ovirt/contents/{+path}","compare_url":"https://api.github.com/repos/ManageIQ/ovirt/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ManageIQ/ovirt/merges","archive_url":"https://api.github.com/repos/ManageIQ/ovirt/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ManageIQ/ovirt/downloads","issues_url":"https://api.github.com/repos/ManageIQ/ovirt/issues{/number}","pulls_url":"https://api.github.com/repos/ManageIQ/ovirt/pulls{/number}","milestones_url":"https://api.github.com/repos/ManageIQ/ovirt/milestones{/number}","notifications_url":"https://api.github.com/repos/ManageIQ/ovirt/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ManageIQ/ovirt/labels{/name}","releases_url":"https://api.github.com/repos/ManageIQ/ovirt/releases{/id}","created_at":"2014-09-19T21:59:15Z","updated_at":"2015-06-11T16:22:47Z","pushed_at":"2015-08-25T06:06:12Z","git_url":"git://github.com/ManageIQ/ovirt.git","ssh_url":"git@github.com:ManageIQ/ovirt.git","clone_url":"https://github.com/ManageIQ/ovirt.git","svn_url":"https://github.com/ManageIQ/ovirt","homepage":"","size":532,"stargazers_count":4,"watchers_count":4,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":11,"mirror_url":null,"open_issues_count":1,"forks":11,"open_issues":1,"watchers":4,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ManageIQ/ovirt/pulls/37"},"html":{"href":"https://github.com/ManageIQ/ovirt/pull/37"},"issue":{"href":"https://api.github.com/repos/ManageIQ/ovirt/issues/37"},"comments":{"href":"https://api.github.com/repos/ManageIQ/ovirt/issues/37/comments"},"review_comments":{"href":"https://api.github.com/repos/ManageIQ/ovirt/pulls/37/comments"},"review_comment":{"href":"https://api.github.com/repos/ManageIQ/ovirt/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ManageIQ/ovirt/pulls/37/commits"},"statuses":{"href":"https://api.github.com/repos/ManageIQ/ovirt/statuses/0693f5b50899cfeba1616d84c032bd75f81751d4"}}}}