From 8c0ec5fd8204ea3fd8f6f9d0e1523a113efaa92f Mon Sep 17 00:00:00 2001 From: MyronFanQiu <49134743+MyronFanQiu@users.noreply.github.com> Date: Wed, 7 Aug 2019 17:36:14 +0800 Subject: [PATCH] delete the check for the resource group (#58492) --- lib/ansible/modules/cloud/azure/azure_rm_dnsrecordset.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/lib/ansible/modules/cloud/azure/azure_rm_dnsrecordset.py b/lib/ansible/modules/cloud/azure/azure_rm_dnsrecordset.py index cd20637ffc0..069284d873b 100644 --- a/lib/ansible/modules/cloud/azure/azure_rm_dnsrecordset.py +++ b/lib/ansible/modules/cloud/azure/azure_rm_dnsrecordset.py @@ -364,8 +364,6 @@ class AzureRMRecordSet(AzureRMModuleBase): for key in self.module_arg_spec.keys(): setattr(self, key, kwargs[key]) - # retrieve resource group to make sure it exists - self.get_resource_group(self.resource_group) zone = self.dns_client.zones.get(self.resource_group, self.zone_name) if not zone: self.fail('The zone {0} does not exist in the resource group {1}'.format(self.zone_name, self.resource_group))