diff --git a/cloud/digital_ocean/digital_ocean_domain.py b/cloud/digital_ocean/digital_ocean_domain.py index 81de784af87..cf05a7f91c1 100644 --- a/cloud/digital_ocean/digital_ocean_domain.py +++ b/cloud/digital_ocean/digital_ocean_domain.py @@ -125,7 +125,7 @@ class Domain(JsonfyMixIn): self.__dict__.update(domain_json) def destroy(self): - self.manager.destroy_domain(self.id) + self.manager.destroy_domain(self.name) def records(self): json = self.manager.all_domain_records(self.id) @@ -177,7 +177,6 @@ def core(module): except KeyError as e: module.fail_json(msg='Unable to load %s' % e.message) - changed = True state = module.params['state'] Domain.setup(api_token)