Skip to content

Commit

Permalink
Fixed error where recordset relative did not exist (#706)
Browse files Browse the repository at this point in the history
  • Loading branch information
Fred-sun authored Dec 8, 2021
1 parent 4abeead commit 8670cd6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
5 changes: 3 additions & 2 deletions plugins/modules/azure_rm_dnsrecordset_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -242,9 +242,10 @@ def get_item(self):
try:
item = self.dns_client.record_sets.get(self.resource_group, self.zone_name, self.relative_name, self.record_type)
except CloudError:
results = []
pass

results = [item]
else:
results = [item]
return results

def list_type(self):
Expand Down
6 changes: 0 additions & 6 deletions tests/sanity/ignore-2.13.txt
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,7 @@ plugins/modules/azure_rm_deployment.py validate-modules:parameter-type-not-in-do
plugins/modules/azure_rm_deployment.py validate-modules:return-syntax-error
plugins/modules/azure_rm_deployment_info.py validate-modules:parameter-type-not-in-doc
plugins/modules/azure_rm_deployment_info.py validate-modules:return-syntax-error
plugins/modules/azure_rm_dnsrecordset.py validate-modules:doc-missing-type
plugins/modules/azure_rm_dnsrecordset.py validate-modules:parameter-type-not-in-doc
plugins/modules/azure_rm_dnsrecordset.py validate-modules:doc-elements-mismatch
plugins/modules/azure_rm_dnsrecordset.py validate-modules:invalid-ansiblemodule-schema
plugins/modules/azure_rm_dnsrecordset.py validate-modules:return-syntax-error
plugins/modules/azure_rm_dnsrecordset_info.py validate-modules:parameter-type-not-in-doc
plugins/modules/azure_rm_dnsrecordset_info.py validate-modules:return-syntax-error
plugins/modules/azure_rm_dnszone.py validate-modules:parameter-type-not-in-doc
plugins/modules/azure_rm_dnszone.py validate-modules:doc-elements-mismatch
plugins/modules/azure_rm_dnszone_info.py validate-modules:doc-type-does-not-match-spec
Expand Down

0 comments on commit 8670cd6

Please sign in to comment.