1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Fix aks failure (#54381)

This commit is contained in:
Yuwei Zhou 2019-03-27 10:57:36 +08:00 committed by Zim Kalinowski
parent cd8f8d7a3e
commit 98a3fa2dac

View file

@ -539,9 +539,9 @@ class AzureRMManagedCluster(AzureRMModuleBase):
if agentpoolcount > 1:
self.fail('You cannot specify more than one agent_pool_profiles currently')
available_versions = self.get_all_versions()
if not response:
to_be_updated = True
available_versions = self.get_all_versions()
if self.kubernetes_version not in available_versions.keys():
self.fail("Unsupported kubernetes version. Expected one of {0} but got {1}".format(available_versions.keys(), self.kubernetes_version))
else: