)]}'
{"tempest/api/compute/base.py":[{"author":{"_account_id":8556,"name":"Ghanshyam Maan","display_name":"Ghanshyam Maan","email":"gmaan.os14@gmail.com","username":"ghanshyam"},"change_message_id":"e8c65b2810b8802c2a6f7e6cc1ebfb72800fe190","unresolved":false,"context_lines":[{"line_number":498,"context_line":"        hypers \u003d self.os_admin.hypervisor_client.list_hypervisors("},{"line_number":499,"context_line":"            )[\u0027hypervisors\u0027]"},{"line_number":500,"context_line":"        hosts \u003d [hyper[\u0027hypervisor_hostname\u0027] for hyper in hypers"},{"line_number":501,"context_line":"                 if hyper[\u0027state\u0027] \u003d\u003d \u0027up\u0027]"},{"line_number":502,"context_line":""},{"line_number":503,"context_line":"        for target_host in hosts:"},{"line_number":504,"context_line":"            if source_host !\u003d target_host:"}],"source_content_type":"text/x-python","patch_set":1,"id":"7f287b81_c16f42fa","line":501,"range":{"start_line":501,"start_character":19,"end_line":501,"end_character":43},"updated":"2017-09-06 10:08:04.000000000","message":"what if it is disabled. If using list hypervisor, you need to check hyper[\u0027status\u0027] \u003d\u003d \u0027enabled\u0027 also","commit_id":"ad2ce971cc9033989ae3e8ca591400d64604f481"},{"author":{"_account_id":8556,"name":"Ghanshyam Maan","display_name":"Ghanshyam Maan","email":"gmaan.os14@gmail.com","username":"ghanshyam"},"change_message_id":"feea3e288c58d8eccc7872bb55adcc86ac059641","unresolved":false,"context_lines":[{"line_number":498,"context_line":"        hypers \u003d self.os_admin.hypervisor_client.list_hypervisors("},{"line_number":499,"context_line":"            )[\u0027hypervisors\u0027]"},{"line_number":500,"context_line":"        hosts \u003d [hyper[\u0027hypervisor_hostname\u0027] for hyper in hypers"},{"line_number":501,"context_line":"                 if hyper[\u0027state\u0027] \u003d\u003d \u0027up\u0027]"},{"line_number":502,"context_line":""},{"line_number":503,"context_line":"        for target_host in hosts:"},{"line_number":504,"context_line":"            if source_host !\u003d target_host:"}],"source_content_type":"text/x-python","patch_set":1,"id":"7f287b81_4f38ff9e","line":501,"range":{"start_line":501,"start_character":19,"end_line":501,"end_character":43},"in_reply_to":"7f287b81_8a101850","updated":"2017-09-07 04:14:41.000000000","message":"Yea, actually API can disable/enable the host even it is in up/down state. mainly for maintenance purpose.","commit_id":"ad2ce971cc9033989ae3e8ca591400d64604f481"},{"author":{"_account_id":20190,"name":"zhufl","email":"zhu.fanglei@zte.com.cn","username":"zhufl"},"change_message_id":"d891aba4eabdbeb111e84825a2e7f3501067f3e2","unresolved":false,"context_lines":[{"line_number":498,"context_line":"        hypers \u003d self.os_admin.hypervisor_client.list_hypervisors("},{"line_number":499,"context_line":"            )[\u0027hypervisors\u0027]"},{"line_number":500,"context_line":"        hosts \u003d [hyper[\u0027hypervisor_hostname\u0027] for hyper in hypers"},{"line_number":501,"context_line":"                 if hyper[\u0027state\u0027] \u003d\u003d \u0027up\u0027]"},{"line_number":502,"context_line":""},{"line_number":503,"context_line":"        for target_host in hosts:"},{"line_number":504,"context_line":"            if source_host !\u003d target_host:"}],"source_content_type":"text/x-python","patch_set":1,"id":"7f287b81_8a101850","line":501,"range":{"start_line":501,"start_character":19,"end_line":501,"end_character":43},"in_reply_to":"7f287b81_c16f42fa","updated":"2017-09-07 02:16:48.000000000","message":"if host is disabled I don\u0027t know can the hypervisor status be \u0027up\u0027, but it\u0027s no harm to add a check","commit_id":"ad2ce971cc9033989ae3e8ca591400d64604f481"}]}
