def _commit_hostname_handler(self, cmd):
current_prompt = self.device.find_prompt().strip()<EOL>terminating_char = current_prompt[-<NUM_LIT:1>]<EOL>pattern = r"<STR_LIT>".format(terminating_char)<EOL>output = self.device.send_command_expect(cmd, expect_string=pattern)<EOL>self.device.set_base_prompt()<EOL>return output<EOL>
Special handler for hostname change on commit operation.