diff options
Diffstat (limited to 'lib/ansible/modules/web_infrastructure/ansible_tower/tower_job_launch.py')
-rw-r--r-- | lib/ansible/modules/web_infrastructure/ansible_tower/tower_job_launch.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ansible/modules/web_infrastructure/ansible_tower/tower_job_launch.py b/lib/ansible/modules/web_infrastructure/ansible_tower/tower_job_launch.py index c34ec3dd23..d05abba097 100644 --- a/lib/ansible/modules/web_infrastructure/ansible_tower/tower_job_launch.py +++ b/lib/ansible/modules/web_infrastructure/ansible_tower/tower_job_launch.py @@ -134,7 +134,7 @@ def main(): result = job.launch(no_input=True, **params) json_output['id'] = result['id'] json_output['status'] = result['status'] - except (exc.ConnectionError, exc.BadRequest) as excinfo: + except (exc.ConnectionError, exc.BadRequest, exc.AuthError) as excinfo: module.fail_json(msg='Unable to launch job: {0}'.format(excinfo), changed=False) json_output['changed'] = result['changed'] |