mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-23 19:01:26 -07:00
zap extra format args from azure_rm_common errmsg
This commit is contained in:
parent
68ccd5fc00
commit
3e56883c44
1 changed files with 3 additions and 4 deletions
|
@ -235,8 +235,8 @@ class AzureRMModuleBase(object):
|
||||||
"- {0}".format(HAS_MSRESTAZURE_EXC))
|
"- {0}".format(HAS_MSRESTAZURE_EXC))
|
||||||
|
|
||||||
if not HAS_AZURE:
|
if not HAS_AZURE:
|
||||||
self.fail("Do you have azure>={1} installed? Try `pip install ansible[azure] --upgrade`"
|
self.fail("Do you have azure>={1} installed? Try `pip install ansible[azure]`"
|
||||||
"- {0}".format(HAS_AZURE_EXC, AZURE_MIN_RELEASE))
|
"- {0}".format(HAS_AZURE_EXC))
|
||||||
|
|
||||||
self._cloud_environment = None
|
self._cloud_environment = None
|
||||||
self._network_client = None
|
self._network_client = None
|
||||||
|
@ -330,8 +330,7 @@ class AzureRMModuleBase(object):
|
||||||
expected_version = package_version.get('expected_version')
|
expected_version = package_version.get('expected_version')
|
||||||
if Version(client_version) < Version(expected_version):
|
if Version(client_version) < Version(expected_version):
|
||||||
self.fail("Installed {0} client version is {1}. The supported version is {2}. Try "
|
self.fail("Installed {0} client version is {1}. The supported version is {2}. Try "
|
||||||
"`pip install ansible[azure]`".format(client_name, client_version, expected_version,
|
"`pip install ansible[azure]`".format(client_name, client_version, expected_version))
|
||||||
AZURE_MIN_RELEASE))
|
|
||||||
|
|
||||||
def exec_module(self, **kwargs):
|
def exec_module(self, **kwargs):
|
||||||
self.fail("Error: {0} failed to implement exec_module method.".format(self.__class__.__name__))
|
self.fail("Error: {0} failed to implement exec_module method.".format(self.__class__.__name__))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue