Skip to content

Commit

Permalink
Don't cleanup (#37)
Browse files Browse the repository at this point in the history
Fixes #33 We don't need to cleanup. Google Domains already does that for us.
  • Loading branch information
aaomidi authored May 23, 2023
1 parent 768d5c5 commit 58d9be8
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions certbot_dns_google_domains/dns_google_domains.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,17 +132,6 @@ def _get_gds_api(self) -> GDSApi:
return GDSApi(self.access_token)

def _cleanup(self, domain: str, validation_name: str, validation: str):
gds_api = self._get_gds_api()
record_remove = AcmeTxtRecord(validation_name, validation)
rotate_req = RotateChallengesRequest(
self.access_token, None, [record_remove], True)

zone = self._get_zone(
domain, self.zone_from_credentials, self.conf('zone'), self.psl)
try:
gds_api.rotate_challenges(zone, rotate_req)
except Exception as err:
raise errors.PluginError(f"Unable to rotate DNS challenges: {err}")
return

@staticmethod
Expand Down

0 comments on commit 58d9be8

Please sign in to comment.