Fixing exception import for tower modules (#50447)

* fixing the exception import from tower modules

* Adding tests for checking tower modules are failing with correct msg

* fixed failing tests

* fixed failing test in tower_team
This commit is contained in:
jainnikhil30 2019-01-09 20:01:21 +05:30 committed by René Moser
commit cd27982959
27 changed files with 168 additions and 19 deletions

View file

@ -97,7 +97,7 @@ from ansible.module_utils.ansible_tower import TowerModule, tower_auth_config, t
try:
import tower_cli
import tower_cli.utils.exceptions as exc
import tower_cli.exceptions as exc
from tower_cli.conf import settings
except ImportError: