delete the check for the resource group (#58492)

pull/60204/head
MyronFanQiu 5 years ago committed by ansibot
parent 041ede30b3
commit 8c0ec5fd82

@ -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))

Loading…
Cancel
Save