

def _aa_type(self):
    '\n        The type of this site. Valid types include: DC, BU, AWS, and Office.\n        '
    valid_site_types = ['dc', 'bu', 'office', 'aws']
    if (self.value.lower() not in valid_site_types):
        raise ValidationError('{0} not a valid site type'.format(self.value))
    if (self.value.lower() == 'office'):
        self.value = self.value.lower().title()
    else:
        self.value = self.value.upper()

dataset/ETHPy150Open mozilla/inventory/core/site/models.py SiteKeyValue._aa_type/original