)]}'
{"ironic/drivers/modules/ssh.py":[{"author":{"_account_id":9315,"name":"ramesh","email":"rameshg87@gmail.com","username":"rameshg87"},"change_message_id":"68f90b67583dfa4bfe0c336344dac1e0f1008304","unresolved":false,"context_lines":[{"line_number":126,"context_line":"                \"\u0027 \u0027{print $2}\u0027\"),"},{"line_number":127,"context_line":"            \u0027set_boot_device\u0027: (\u0027{_BaseCmd_} modifyvm {_NodeName_} \u0027"},{"line_number":128,"context_line":"                \u0027--boot1 {_BootDevice_}\u0027),"},{"line_number":129,"context_line":"            \u0027get_boot_device\u0027: (\"{_BaseCmd_} showvminfo \""},{"line_number":130,"context_line":"                \"--machinereadable {_NodeName_} | \""},{"line_number":131,"context_line":"                \"grep \""},{"line_number":132,"context_line":"                \u0027\"boot1\" | awk -F \u0027"}],"source_content_type":"text/x-python","patch_set":2,"id":"1abeadc6_f484515f","line":129,"updated":"2014-08-29 05:52:02.000000000","message":"The similar thing has been done above, but we can do the searching with awk itself and avoid grep.\n\n\nawk -F\u0027\"\u0027 \u0027/boot1/{print $2}\u0027\n\nAlso it would be better if we can bring the awk command into one line so that it becomes more readable\n\n\u0027get_boot_device\u0027: (\"{_BaseCmd_} showvminfo \"\n    \"--machinereadable {_NodeName_} | \"\n    \"awk -F\u0027\\\"\u0027 \u0027/boot1/{print $2}\"","commit_id":"89a418c0ab400f2302382e86f6bf6dd59f118468"},{"author":{"_account_id":12385,"name":"Motohiro/Yuanying Otsuka","email":"yuanying@fraction.jp","username":"yuanying"},"change_message_id":"eee0197149b7ff4035e90e3801ea88cff67164c9","unresolved":false,"context_lines":[{"line_number":126,"context_line":"                \"\u0027 \u0027{print $2}\u0027\"),"},{"line_number":127,"context_line":"            \u0027set_boot_device\u0027: (\u0027{_BaseCmd_} modifyvm {_NodeName_} \u0027"},{"line_number":128,"context_line":"                \u0027--boot1 {_BootDevice_}\u0027),"},{"line_number":129,"context_line":"            \u0027get_boot_device\u0027: (\"{_BaseCmd_} showvminfo \""},{"line_number":130,"context_line":"                \"--machinereadable {_NodeName_} | \""},{"line_number":131,"context_line":"                \"grep \""},{"line_number":132,"context_line":"                \u0027\"boot1\" | awk -F \u0027"}],"source_content_type":"text/x-python","patch_set":2,"id":"1abeadc6_8acbf670","line":129,"in_reply_to":"1abeadc6_f484515f","updated":"2014-08-29 06:33:43.000000000","message":"Its very simple. Thanks!","commit_id":"89a418c0ab400f2302382e86f6bf6dd59f118468"}]}
