def __to_computer()

in ad-joining/register-computer/ad/domain.py [0:0]


    def __to_computer(self, entry):
        return Computer(
            entry.entry_dn,
            self.__to_scalar(entry["name"]),
            self.__to_scalar(entry[self.LDAP_ATTRIBUTE_PROJECT_ID]),
            self.__to_scalar(entry[self.LDAP_ATTRIBUTE_ZONE]),
            self.__to_scalar(entry[self.LDAP_ATTRIBUTE_INSTANCE_NAME]),
            self.__to_scalar(entry["dNSHostName"])
        )