{"action":"created","issue":{"url":"https://api.github.com/repos/ManageIQ/manageiq/issues/5669","labels_url":"https://api.github.com/repos/ManageIQ/manageiq/issues/5669/labels{/name}","comments_url":"https://api.github.com/repos/ManageIQ/manageiq/issues/5669/comments","events_url":"https://api.github.com/repos/ManageIQ/manageiq/issues/5669/events","html_url":"https://github.com/ManageIQ/manageiq/pull/5669","id":119780722,"number":5669,"title":"[api] Update host password","user":{"login":"imtayadeway","id":1710874,"avatar_url":"https://avatars.githubusercontent.com/u/1710874?v=3","gravatar_id":"","url":"https://api.github.com/users/imtayadeway","html_url":"https://github.com/imtayadeway","followers_url":"https://api.github.com/users/imtayadeway/followers","following_url":"https://api.github.com/users/imtayadeway/following{/other_user}","gists_url":"https://api.github.com/users/imtayadeway/gists{/gist_id}","starred_url":"https://api.github.com/users/imtayadeway/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/imtayadeway/subscriptions","organizations_url":"https://api.github.com/users/imtayadeway/orgs","repos_url":"https://api.github.com/users/imtayadeway/repos","events_url":"https://api.github.com/users/imtayadeway/events{/privacy}","received_events_url":"https://api.github.com/users/imtayadeway/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ManageIQ/manageiq/labels/api","name":"api","color":"5319e7"},{"url":"https://api.github.com/repos/ManageIQ/manageiq/labels/core","name":"core","color":"5319e7"},{"url":"https://api.github.com/repos/ManageIQ/manageiq/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-12-01T18:41:36Z","updated_at":"2015-12-02T23:33:41Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/ManageIQ/manageiq/pulls/5669","html_url":"https://github.com/ManageIQ/manageiq/pull/5669","diff_url":"https://github.com/ManageIQ/manageiq/pull/5669.diff","patch_url":"https://github.com/ManageIQ/manageiq/pull/5669.patch"},"body":"Allow an authorized user to update the password on a host.\r\n\r\nResolves https://trello.com/c/aRAnctCh\r\n\r\n***\r\n\r\nExample (with some details in response omitted):\r\n\r\n```\r\ntim@tim-thinkpad:~/src/manageiq/gems/cfme_client$ be bin/rest_api.rb post hosts/1\r\nEnter data to send with request:\r\nTerminate with \"\" or \".\"\r\n{\"action\": \"edit\", \"resource\": {\"credentials\": {\"password\": \"abc123\"}}}\r\n\r\n{\r\n  \"href\": \"http://localhost:3000/api/hosts/1\",\r\n  \"id\": 1,\r\n  [...]\r\n  \"power_state\": \"on\",\r\n  \"smart\": 1,\r\n  [...]\r\n  \"connection_state\": \"connected\",\r\n  [...]\r\n  \"type\": \"ManageIQ::Providers::Vmware::InfraManager::HostEsx\",\r\n  [...]\r\n  \"hyperthreading\": true,\r\n  \"ems_cluster_id\": 1\r\n}\r\n```\r\n***\r\n\r\n@abellotti please review\r\n@miq-bot add-label api, core, enhancement"},"comment":{"url":"https://api.github.com/repos/ManageIQ/manageiq/issues/comments/161467201","html_url":"https://github.com/ManageIQ/manageiq/pull/5669#issuecomment-161467201","issue_url":"https://api.github.com/repos/ManageIQ/manageiq/issues/5669","id":161467201,"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-12-02T23:33:41Z","updated_at":"2015-12-02T23:33:41Z","body":"<rubocop />Checked commits https://github.com/imtayadeway/manageiq/compare/56e636e77fd6ad4af785e8c02d4780c802864f91~...7ae64eca40b6e0b5e1ac30f3a9cc420781fc346f with ruby 2.2.3, rubocop 0.34.2, and haml-lint 0.13.0\n3 files checked, 1 offense detected\n\n**app/controllers/api_controller/hosts.rb**\n- [ ] :small_blue_diamond: - [Line 7](https://github.com/imtayadeway/manageiq/blob/7ae64eca40b6e0b5e1ac30f3a9cc420781fc346f/app/controllers/api_controller/hosts.rb#L7), Col 5 - [Metrics/AbcSize](http://rubydoc.info/gems/rubocop/0.34.2/RuboCop/Cop/Metrics/AbcSize) - Assignment Branch Condition size for edit_resource_hosts is too high. [16.55/15]\n"}}