{"action":"created","issue":{"url":"https://api.github.com/repos/ManageIQ/manageiq/issues/418","labels_url":"https://api.github.com/repos/ManageIQ/manageiq/issues/418/labels{/name}","comments_url":"https://api.github.com/repos/ManageIQ/manageiq/issues/418/comments","events_url":"https://api.github.com/repos/ManageIQ/manageiq/issues/418/events","html_url":"https://github.com/ManageIQ/manageiq/pull/418","id":40609060,"number":418,"title":"Add backend method vm_reconfigure on RHEV.","user":{"login":"lfu","id":2593270,"avatar_url":"https://avatars.githubusercontent.com/u/2593270?v=3","gravatar_id":"","url":"https://api.github.com/users/lfu","html_url":"https://github.com/lfu","followers_url":"https://api.github.com/users/lfu/followers","following_url":"https://api.github.com/users/lfu/following{/other_user}","gists_url":"https://api.github.com/users/lfu/gists{/gist_id}","starred_url":"https://api.github.com/users/lfu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lfu/subscriptions","organizations_url":"https://api.github.com/users/lfu/orgs","repos_url":"https://api.github.com/users/lfu/repos","events_url":"https://api.github.com/users/lfu/events{/privacy}","received_events_url":"https://api.github.com/users/lfu/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ManageIQ/manageiq/labels/enhancement","name":"enhancement","color":"84b6eb"},{"url":"https://api.github.com/repos/ManageIQ/manageiq/labels/providers/rhevm","name":"providers/rhevm","color":"5319e7"}],"state":"open","locked":false,"assignee":{"login":"lfu","id":2593270,"avatar_url":"https://avatars.githubusercontent.com/u/2593270?v=3","gravatar_id":"","url":"https://api.github.com/users/lfu","html_url":"https://github.com/lfu","followers_url":"https://api.github.com/users/lfu/followers","following_url":"https://api.github.com/users/lfu/following{/other_user}","gists_url":"https://api.github.com/users/lfu/gists{/gist_id}","starred_url":"https://api.github.com/users/lfu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lfu/subscriptions","organizations_url":"https://api.github.com/users/lfu/orgs","repos_url":"https://api.github.com/users/lfu/repos","events_url":"https://api.github.com/users/lfu/events{/privacy}","received_events_url":"https://api.github.com/users/lfu/received_events","type":"User","site_admin":false},"milestone":null,"comments":36,"created_at":"2014-08-19T16:20:09Z","updated_at":"2015-10-02T20:27:32Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/ManageIQ/manageiq/pulls/418","html_url":"https://github.com/ManageIQ/manageiq/pull/418","diff_url":"https://github.com/ManageIQ/manageiq/pull/418.diff","patch_url":"https://github.com/ManageIQ/manageiq/pull/418.patch"},"body":"This patch adds the backend method for UI task Reconfigure VM on RHEV.\r\n\r\nhttps://bugzilla.redhat.com/show_bug.cgi?id=1065573\r\n\r\nTo resolve the above ticket, UI changes are required to enable the task for RHEV VMs and **return the result in the format of {:vm_memory  => total_mem_in_mb, :number_of_cpus => total_cpu_cores, :cores_per_socket => cores_per_socket}**. Please contact me for details about UI changes."},"comment":{"url":"https://api.github.com/repos/ManageIQ/manageiq/issues/comments/145146121","html_url":"https://github.com/ManageIQ/manageiq/pull/418#issuecomment-145146121","issue_url":"https://api.github.com/repos/ManageIQ/manageiq/issues/418","id":145146121,"user":{"login":"miq-bot","id":7806257,"avatar_url":"https://avatars.githubusercontent.com/u/7806257?v=3","gravatar_id":"","url":"https://api.github.com/users/miq-bot","html_url":"https://github.com/miq-bot","followers_url":"https://api.github.com/users/miq-bot/followers","following_url":"https://api.github.com/users/miq-bot/following{/other_user}","gists_url":"https://api.github.com/users/miq-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/miq-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/miq-bot/subscriptions","organizations_url":"https://api.github.com/users/miq-bot/orgs","repos_url":"https://api.github.com/users/miq-bot/repos","events_url":"https://api.github.com/users/miq-bot/events{/privacy}","received_events_url":"https://api.github.com/users/miq-bot/received_events","type":"User","site_admin":false},"created_at":"2015-10-02T20:27:32Z","updated_at":"2015-10-02T20:27:32Z","body":"<rubocop />Checked commits https://github.com/lfu/manageiq/compare/a8237528d4dd29b96a80aa588435e68aa2a42113~...3730f6706452cab930b41e6870d7c907ab273cfa with ruby 1.9.3, rubocop 0.34.2, and haml-lint 0.13.0\n12 files checked, 39 offenses detected\n\n**app/controllers/application_controller/ci_processing.rb**\n- [ ] :large_orange_diamond: - [Line 437](https://github.com/lfu/manageiq/blob/3730f6706452cab930b41e6870d7c907ab273cfa/app/controllers/application_controller/ci_processing.rb#L437), Col 37 - [Style/SpaceAroundOperators](http://rubydoc.info/gems/rubocop/0.34.2/RuboCop/Cop/Style/SpaceAroundOperators) - Surrounding space missing for operator `=`.\n- [ ] :large_orange_diamond: - [Line 440](https://github.com/lfu/manageiq/blob/3730f6706452cab930b41e6870d7c907ab273cfa/app/controllers/application_controller/ci_processing.rb#L440), Col 33 - [Style/ExtraSpacing](http://rubydoc.info/gems/rubocop/0.34.2/RuboCop/Cop/Style/ExtraSpacing) - Unnecessary spacing detected.\n- [ ] :large_orange_diamond: - [Line 443](https://github.com/lfu/manageiq/blob/3730f6706452cab930b41e6870d7c907ab273cfa/app/controllers/application_controller/ci_processing.rb#L443), Col 9 - [Style/IndentationConsistency](http://rubydoc.info/gems/rubocop/0.34.2/RuboCop/Cop/Style/IndentationConsistency) - Inconsistent indentation detected.\n- [ ] :large_orange_diamond: - [Line 1090](https://github.com/lfu/manageiq/blob/3730f6706452cab930b41e6870d7c907ab273cfa/app/controllers/application_controller/ci_processing.rb#L1090), Col 37 - [Style/SpaceInsideParens](http://rubydoc.info/gems/rubocop/0.34.2/RuboCop/Cop/Style/SpaceInsideParens) - Space inside parentheses detected.\n- [ ] :large_orange_diamond: - [Line 1090](https://github.com/lfu/manageiq/blob/3730f6706452cab930b41e6870d7c907ab273cfa/app/controllers/application_controller/ci_processing.rb#L1090), Col 106 - [Style/SpaceAroundOperators](http://rubydoc.info/gems/rubocop/0.34.2/RuboCop/Cop/Style/SpaceAroundOperators) - Surrounding space missing for operator `?`.\n- [ ] :large_orange_diamond: - [Line 1090](https://github.com/lfu/manageiq/blob/3730f6706452cab930b41e6870d7c907ab273cfa/app/controllers/application_controller/ci_processing.rb#L1090), Col 120 - [Style/ExtraSpacing](http://rubydoc.info/gems/rubocop/0.34.2/RuboCop/Cop/Style/ExtraSpacing) - Unnecessary spacing detected.\n- [ ] :large_orange_diamond: - [Line 1097](https://github.com/lfu/manageiq/blob/3730f6706452cab930b41e6870d7c907ab273cfa/app/controllers/application_controller/ci_processing.rb#L1097), Col 30 - [Style/EmptyLiteral](http://rubydoc.info/gems/rubocop/0.34.2/RuboCop/Cop/Style/EmptyLiteral) - Use array literal `[]` instead of `Array.new`.\n- [ ] :small_blue_diamond: - [Line 419](https://github.com/lfu/manageiq/blob/3730f6706452cab930b41e6870d7c907ab273cfa/app/controllers/application_controller/ci_processing.rb#L419), Col 121 - [Metrics/LineLength](http://rubydoc.info/gems/rubocop/0.34.2/RuboCop/Cop/Metrics/LineLength) - Line is too long. [197/120]\n- [ ] :small_blue_diamond: - [Line 436](https://github.com/lfu/manageiq/blob/3730f6706452cab930b41e6870d7c907ab273cfa/app/controllers/application_controller/ci_processing.rb#L436), Col 121 - [Metrics/LineLength](http://rubydoc.info/gems/rubocop/0.34.2/RuboCop/Cop/Metrics/LineLength) - Line is too long. [122/120]\n- [ ] :small_blue_diamond: - [Line 1090](https://github.com/lfu/manageiq/blob/3730f6706452cab930b41e6870d7c907ab273cfa/app/controllers/application_controller/ci_processing.rb#L1090), Col 121 - [Metrics/LineLength](http://rubydoc.info/gems/rubocop/0.34.2/RuboCop/Cop/Metrics/LineLength) - Line is too long. [171/120]\n\n**app/models/manageiq/providers/redhat/infra_manager.rb**\n- [ ] :large_orange_diamond: - [Line 202](https://github.com/lfu/manageiq/blob/3730f6706452cab930b41e6870d7c907ab273cfa/app/models/manageiq/providers/redhat/infra_manager.rb#L202), Col 54 - [Style/ExtraSpacing](http://rubydoc.info/gems/rubocop/0.34.2/RuboCop/Cop/Style/ExtraSpacing) - Unnecessary spacing detected.\n- [ ] :small_blue_diamond: - [Line 196](https://github.com/lfu/manageiq/blob/3730f6706452cab930b41e6870d7c907ab273cfa/app/models/manageiq/providers/redhat/infra_manager.rb#L196), Col 3 - [Metrics/AbcSize](http://rubydoc.info/gems/rubocop/0.34.2/RuboCop/Cop/Metrics/AbcSize) - Assignment Branch Condition size for vm_reconfigure is too high. [28.6/15]\n\n**app/models/vm_reconfigure_request.rb**\n- [ ] :large_orange_diamond: - [Line 26](https://github.com/lfu/manageiq/blob/3730f6706452cab930b41e6870d7c907ab273cfa/app/models/vm_reconfigure_request.rb#L26), Col 28 - [Style/SpaceAroundOperators](http://rubydoc.info/gems/rubocop/0.34.2/RuboCop/Cop/Style/SpaceAroundOperators) - Operator `<<` should be surrounded with a single space.\n- [ ] :large_orange_diamond: - [Line 28](https://github.com/lfu/manageiq/blob/3730f6706452cab930b41e6870d7c907ab273cfa/app/models/vm_reconfigure_request.rb#L28), Col 28 - [Style/SpaceAroundOperators](http://rubydoc.info/gems/rubocop/0.34.2/RuboCop/Cop/Style/SpaceAroundOperators) - Operator `<<` should be surrounded with a single space.\n- [ ] :small_blue_diamond: - [Line 27](https://github.com/lfu/manageiq/blob/3730f6706452cab930b41e6870d7c907ab273cfa/app/models/vm_reconfigure_request.rb#L27), Col 121 - [Metrics/LineLength](http://rubydoc.info/gems/rubocop/0.34.2/RuboCop/Cop/Metrics/LineLength) - Line is too long. [128/120]\n- [ ] :small_blue_diamond: - [Line 61](https://github.com/lfu/manageiq/blob/3730f6706452cab930b41e6870d7c907ab273cfa/app/models/vm_reconfigure_request.rb#L61), Col 121 - [Metrics/LineLength](http://rubydoc.info/gems/rubocop/0.34.2/RuboCop/Cop/Metrics/LineLength) - Line is too long. [156/120]\n- [ ] :small_blue_diamond: - [Line 62](https://github.com/lfu/manageiq/blob/3730f6706452cab930b41e6870d7c907ab273cfa/app/models/vm_reconfigure_request.rb#L62), Col 121 - [Metrics/LineLength](http://rubydoc.info/gems/rubocop/0.34.2/RuboCop/Cop/Metrics/LineLength) - Line is too long. [156/120]\n\n**app/models/vm_reconfigure_task.rb**\n- [ ] :small_blue_diamond: - [Line 32](https://github.com/lfu/manageiq/blob/3730f6706452cab930b41e6870d7c907ab273cfa/app/models/vm_reconfigure_task.rb#L32), Col 121 - [Metrics/LineLength](http://rubydoc.info/gems/rubocop/0.34.2/RuboCop/Cop/Metrics/LineLength) - Line is too long. [134/120]\n- [ ] :small_blue_diamond: - [Line 34](https://github.com/lfu/manageiq/blob/3730f6706452cab930b41e6870d7c907ab273cfa/app/models/vm_reconfigure_task.rb#L34), Col 121 - [Metrics/LineLength](http://rubydoc.info/gems/rubocop/0.34.2/RuboCop/Cop/Metrics/LineLength) - Line is too long. [127/120]\n\n**app/views/vm_common/_reconfigure.html.haml**\n- [ ] :red_circle: **Warn** - [Line 58](https://github.com/lfu/manageiq/blob/3730f6706452cab930b41e6870d7c907ab273cfa/app/views/vm_common/_reconfigure.html.haml#L58), Col  -  - Line is too long. [177/160]\n- [ ] :red_circle: **Warn** - [Line 74](https://github.com/lfu/manageiq/blob/3730f6706452cab930b41e6870d7c907ab273cfa/app/views/vm_common/_reconfigure.html.haml#L74), Col  -  - Style/SpaceAfterComma: Space missing after comma.\n- [ ] :red_circle: **Warn** - [Line 75](https://github.com/lfu/manageiq/blob/3730f6706452cab930b41e6870d7c907ab273cfa/app/views/vm_common/_reconfigure.html.haml#L75), Col  -  - Line is too long. [196/160]\n- [ ] :red_circle: **Warn** - [Line 90](https://github.com/lfu/manageiq/blob/3730f6706452cab930b41e6870d7c907ab273cfa/app/views/vm_common/_reconfigure.html.haml#L90), Col  -  - Line is too long. [164/160]\n\n**spec/controllers/vm_infra_controller_spec.rb**\n- [ ] :small_blue_diamond: - [Line 133](https://github.com/lfu/manageiq/blob/3730f6706452cab930b41e6870d7c907ab273cfa/spec/controllers/vm_infra_controller_spec.rb#L133), Col 121 - [Metrics/LineLength](http://rubydoc.info/gems/rubocop/0.34.2/RuboCop/Cop/Metrics/LineLength) - Line is too long. [209/120]\n- [ ] :small_blue_diamond: - [Line 134](https://github.com/lfu/manageiq/blob/3730f6706452cab930b41e6870d7c907ab273cfa/spec/controllers/vm_infra_controller_spec.rb#L134), Col 121 - [Metrics/LineLength](http://rubydoc.info/gems/rubocop/0.34.2/RuboCop/Cop/Metrics/LineLength) - Line is too long. [227/120]\n\n**spec/models/vm_reconfigure_request_spec.rb**\n- [ ] :large_orange_diamond: - [Line 93](https://github.com/lfu/manageiq/blob/3730f6706452cab930b41e6870d7c907ab273cfa/spec/models/vm_reconfigure_request_spec.rb#L93), Col 12 - [Style/ExtraSpacing](http://rubydoc.info/gems/rubocop/0.34.2/RuboCop/Cop/Style/ExtraSpacing) - Unnecessary spacing detected.\n- [ ] :large_orange_diamond: - [Line 107](https://github.com/lfu/manageiq/blob/3730f6706452cab930b41e6870d7c907ab273cfa/spec/models/vm_reconfigure_request_spec.rb#L107), Col 12 - [Style/ExtraSpacing](http://rubydoc.info/gems/rubocop/0.34.2/RuboCop/Cop/Style/ExtraSpacing) - Unnecessary spacing detected.\n- [ ] :large_orange_diamond: - [Line 123](https://github.com/lfu/manageiq/blob/3730f6706452cab930b41e6870d7c907ab273cfa/spec/models/vm_reconfigure_request_spec.rb#L123), Col 68 - [Style/AlignHash](http://rubydoc.info/gems/rubocop/0.34.2/RuboCop/Cop/Style/AlignHash) - Align the elements of a hash literal if they span more than one line.\n- [ ] :large_orange_diamond: - [Line 124](https://github.com/lfu/manageiq/blob/3730f6706452cab930b41e6870d7c907ab273cfa/spec/models/vm_reconfigure_request_spec.rb#L124), Col 68 - [Style/AlignHash](http://rubydoc.info/gems/rubocop/0.34.2/RuboCop/Cop/Style/AlignHash) - Align the elements of a hash literal if they span more than one line.\n- [ ] :large_orange_diamond: - [Line 125](https://github.com/lfu/manageiq/blob/3730f6706452cab930b41e6870d7c907ab273cfa/spec/models/vm_reconfigure_request_spec.rb#L125), Col 68 - [Style/AlignHash](http://rubydoc.info/gems/rubocop/0.34.2/RuboCop/Cop/Style/AlignHash) - Align the elements of a hash literal if they span more than one line.\n- [ ] :large_orange_diamond: - [Line 145](https://github.com/lfu/manageiq/blob/3730f6706452cab930b41e6870d7c907ab273cfa/spec/models/vm_reconfigure_request_spec.rb#L145), Col 68 - [Style/AlignHash](http://rubydoc.info/gems/rubocop/0.34.2/RuboCop/Cop/Style/AlignHash) - Align the elements of a hash literal if they span more than one line.\n- [ ] :large_orange_diamond: - [Line 146](https://github.com/lfu/manageiq/blob/3730f6706452cab930b41e6870d7c907ab273cfa/spec/models/vm_reconfigure_request_spec.rb#L146), Col 68 - [Style/AlignHash](http://rubydoc.info/gems/rubocop/0.34.2/RuboCop/Cop/Style/AlignHash) - Align the elements of a hash literal if they span more than one line.\n- [ ] :large_orange_diamond: - [Line 147](https://github.com/lfu/manageiq/blob/3730f6706452cab930b41e6870d7c907ab273cfa/spec/models/vm_reconfigure_request_spec.rb#L147), Col 68 - [Style/AlignHash](http://rubydoc.info/gems/rubocop/0.34.2/RuboCop/Cop/Style/AlignHash) - Align the elements of a hash literal if they span more than one line.\n- [ ] :large_orange_diamond: - [Line 167](https://github.com/lfu/manageiq/blob/3730f6706452cab930b41e6870d7c907ab273cfa/spec/models/vm_reconfigure_request_spec.rb#L167), Col 65 - [Style/AlignHash](http://rubydoc.info/gems/rubocop/0.34.2/RuboCop/Cop/Style/AlignHash) - Align the elements of a hash literal if they span more than one line.\n- [ ] :large_orange_diamond: - [Line 168](https://github.com/lfu/manageiq/blob/3730f6706452cab930b41e6870d7c907ab273cfa/spec/models/vm_reconfigure_request_spec.rb#L168), Col 65 - [Style/AlignHash](http://rubydoc.info/gems/rubocop/0.34.2/RuboCop/Cop/Style/AlignHash) - Align the elements of a hash literal if they span more than one line.\n- [ ] :large_orange_diamond: - [Line 169](https://github.com/lfu/manageiq/blob/3730f6706452cab930b41e6870d7c907ab273cfa/spec/models/vm_reconfigure_request_spec.rb#L169), Col 65 - [Style/AlignHash](http://rubydoc.info/gems/rubocop/0.34.2/RuboCop/Cop/Style/AlignHash) - Align the elements of a hash literal if they span more than one line.\n- [ ] :small_blue_diamond: - [Line 129](https://github.com/lfu/manageiq/blob/3730f6706452cab930b41e6870d7c907ab273cfa/spec/models/vm_reconfigure_request_spec.rb#L129), Col 121 - [Metrics/LineLength](http://rubydoc.info/gems/rubocop/0.34.2/RuboCop/Cop/Metrics/LineLength) - Line is too long. [135/120]\n- [ ] :small_blue_diamond: - [Line 151](https://github.com/lfu/manageiq/blob/3730f6706452cab930b41e6870d7c907ab273cfa/spec/models/vm_reconfigure_request_spec.rb#L151), Col 121 - [Metrics/LineLength](http://rubydoc.info/gems/rubocop/0.34.2/RuboCop/Cop/Metrics/LineLength) - Line is too long. [135/120]\n- [ ] :small_blue_diamond: - [Line 173](https://github.com/lfu/manageiq/blob/3730f6706452cab930b41e6870d7c907ab273cfa/spec/models/vm_reconfigure_request_spec.rb#L173), Col 121 - [Metrics/LineLength](http://rubydoc.info/gems/rubocop/0.34.2/RuboCop/Cop/Metrics/LineLength) - Line is too long. [131/120]\n"}}