mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-30 22:31:25 -07:00
special case for rest module (#54236)
This commit is contained in:
parent
0ec2d71b4a
commit
19e1b4de58
3 changed files with 22 additions and 0 deletions
|
@ -272,6 +272,9 @@ class AzureRMResource(AzureRMModuleBase):
|
|||
if rt['resourceType'].lower() == resourceType.lower():
|
||||
self.api_version = rt['apiVersions'][0]
|
||||
break
|
||||
else:
|
||||
# if there's no provider in API version, assume Microsoft.Resources
|
||||
self.api_version = '2018-05-01'
|
||||
if not self.api_version:
|
||||
self.fail("Couldn't find api version for {0}/{1}".format(provider, resourceType))
|
||||
except Exception as exc:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue