Merge pull request #2925 from mattclay/apt-repository-check-mode

Show error if python-apt is absent in check mode.
reviewable/pr18780/r1
Brian Coca 9 years ago
commit 3e6a685bd3

@ -129,6 +129,8 @@ def install_python_apt(module):
HAVE_PYTHON_APT = True
else:
module.fail_json(msg="Failed to auto-install python-apt. Error was: '%s'" % se.strip())
else:
module.fail_json(msg="python-apt must be installed to use check mode")
class InvalidSource(Exception):
pass

Loading…
Cancel
Save