)]}'
{"openstackclient/compute/v2/server.py":[{"author":{"_account_id":13252,"name":"Dr. Jens Harbott","display_name":"Jens Harbott (frickler)","email":"frickler@offenerstapel.de","username":"jrosenboom"},"change_message_id":"b0e8e5e4199e5f3076d578eaeeb039bcfc03c31d","unresolved":false,"context_lines":[{"line_number":264,"context_line":"            parsed_args.ip_address,"},{"line_number":265,"context_line":"            ignore_missing\u003dFalse,"},{"line_number":266,"context_line":"        )"},{"line_number":267,"context_line":"        port \u003d client.ports(device_id\u003dparsed_args.server)[0]"},{"line_number":268,"context_line":"        attrs[\u0027port_id\u0027] \u003d port.id"},{"line_number":269,"context_line":"        if parsed_args.fixed_ip_address:"},{"line_number":270,"context_line":"            attrs[\u0027fixed_ip_address\u0027] \u003d parsed_args.fixed_ip_address"}],"source_content_type":"text/x-python","patch_set":4,"id":"df7087c5_fef46789","line":267,"updated":"2018-03-10 09:35:54.000000000","message":"The filtering by device_id only works when the argument is an ID, it fails when it is a name, so you need to convert to server_id first.\n\nThe \"[0]\" also doesn\u0027t seem to work on the generator object. Using \".next()\" instead solves that issue for me.\n\nhttp://paste.openstack.org/show/697692/\n\nI\u0027m still wondering though how to handle the case that a server has multiple ports. I\u0027d be astonished if assuming we can simply attach the FIP to the first port was correct.","commit_id":"0be23db012c6384aa08e47ba5d51b495afd5a18c"}]}
