Skip to content

Commit

Permalink
zap extra format args from azure_rm_common errmsg
Browse files Browse the repository at this point in the history
  • Loading branch information
nitzmahone authored Jan 18, 2018
1 parent 68ccd5f commit 3e56883
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions lib/ansible/module_utils/azure_rm_common.py
Original file line number Diff line number Diff line change
Expand Up @@ -235,8 +235,8 @@ def __init__(self, derived_arg_spec, bypass_checks=False, no_log=False,
"- {0}".format(HAS_MSRESTAZURE_EXC))

if not HAS_AZURE:
self.fail("Do you have azure>={1} installed? Try `pip install ansible[azure] --upgrade`"
"- {0}".format(HAS_AZURE_EXC, AZURE_MIN_RELEASE))
self.fail("Do you have azure>={1} installed? Try `pip install ansible[azure]`"
"- {0}".format(HAS_AZURE_EXC))

self._cloud_environment = None
self._network_client = None
Expand Down Expand Up @@ -330,8 +330,7 @@ def check_client_version(self, client_type):
expected_version = package_version.get('expected_version')
if Version(client_version) < Version(expected_version):
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,
AZURE_MIN_RELEASE))
"`pip install ansible[azure]`".format(client_name, client_version, expected_version))

def exec_module(self, **kwargs):
self.fail("Error: {0} failed to implement exec_module method.".format(self.__class__.__name__))
Expand Down

0 comments on commit 3e56883

Please sign in to comment.