)]}'
{"monasca_agent/collector/checks_d/prometheus.py":[{"author":{"_account_id":26733,"name":"Amir Mofakhar","email":"amir@mofakhar.info","username":"amofakhar"},"change_message_id":"501ed6891b8bd1aa688c5c68eb4b7defb4880716","unresolved":false,"context_lines":[{"line_number":269,"context_line":"                    # Build up list of ports and prometheus endpoints to return"},{"line_number":270,"context_line":"                    endpoints.append(\"{}/{}\".format(configured_port,"},{"line_number":271,"context_line":"                                                    prometheus_endpoint))"},{"line_number":272,"context_line":"        if not prometheus_endpoint:"},{"line_number":273,"context_line":"            self.log.info(\"No prometheus annotation found, return empty endpoints array\")"},{"line_number":274,"context_line":"            return []"},{"line_number":275,"context_line":""}],"source_content_type":"text/x-python","patch_set":3,"id":"1f9dbf25_6df8d8c3","line":272,"updated":"2018-03-01 14:52:42.000000000","message":"I think in a case there is no endpoint in annotations it should not return an empty list. If I am correct then just changing the line #276 to the below one should solve the problem, could you please check it?\n\n276: endpoints.append(\"{}/{}\".format(ports[0][pod_index], prometheus_endpoint))","commit_id":"3559a0ffcf9ce19516c1b84c79413ee8c49915f0"}]}
