

def pointRootToBucket(self):
    bucket = AWSBucket(self.accessKey, self.secretKey, self.domain)
    endpoint = bucket.websiteEndpoint()
    endpointDomain = endpoint[len(self.dnsDomain):]
    for record in self.records():
        if ((record.type in ['A', 'CNAME']) and (record.name == record.dnsDomain)):
            self.delete(record)
    self.createAlias(self.dnsDomain, 'A', HOSTED_ZONES[endpointDomain], endpointDomain)

dataset/ETHPy150Open koenbok/Cactus/cactus/deployment/s3/domain.py AWSDomain.pointRootToBucket/VarMisuse@78/95 `self`->`record`