def get_md_device(self, line, personalities=[]):
ret = {}<EOL>splitted = split('<STR_LIT>', line)<EOL>ret['<STR_LIT:status>'] = splitted[<NUM_LIT:1>]<EOL>if splitted[<NUM_LIT:2>] in personalities:<EOL><INDENT>ret['<STR_LIT:type>'] = splitted[<NUM_LIT:2>]<EOL>ret['<STR_LIT>'] = self.get_components(line, with_type=True)<EOL><DEDENT>else:<EOL><INDENT>ret['<STR_LIT:type>'] = None<EOL>ret['<STR_LIT>'] = self.get_components(line, with_type=False)<EOL><DEDENT>return ret<EOL>
Return a dict of md device define in the line.