def hash_list(self, input_list):
        hash_list = []
        for line in input_list:
            m = re.search('^host\s+(.*)\s+{(.*)}$', line)
            if m:
                tmp = {}
                host = m.group(1)
                if '-' in host:
                    split_hostname = m.group(1).split('-')[:-1]
                    tmp['host'] = "-".join(split_hostname)
                else:
                    tmp['host'] = host


                for the_key in m.group(2).split(';'):
                    for known in self.known_options:
                        if known in the_key:
                            tmp[known] = the_key.replace(known, '').strip().strip('"').strip("'")
            hash_list.append(tmp)
        return hash_list
dataset/ETHPy150Open mozilla/inventory/dhcp/DHCPHash.py/DHCPHash.hash_list/original