Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
ansible
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenEdx
ansible
Commits
15101092
Commit
15101092
authored
Aug 06, 2015
by
James Cammarata
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #11867 from willthames/dont_smother_exceptions
Allow exceptions to pass through the program
parents
e7b5cb87
59f96d71
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
bin/ansible
+6
-2
No files found.
bin/ansible
View file @
15101092
...
...
@@ -36,6 +36,7 @@ import os
import
sys
import
traceback
import
ansible.constants
as
C
from
ansible.errors
import
AnsibleError
,
AnsibleOptionsError
,
AnsibleParserError
from
ansible.utils.display
import
Display
...
...
@@ -103,8 +104,11 @@ if __name__ == '__main__':
except
Exception
as
e
:
have_cli_options
=
cli
is
not
None
and
cli
.
options
is
not
None
display
.
error
(
"Unexpected Exception:
%
s"
%
str
(
e
),
wrap_text
=
False
)
if
not
have_cli_options
or
have_cli_options
and
cli
.
options
.
verbosity
>
2
:
if
not
have_cli_options
or
have_cli_options
and
cli
.
options
.
verbosity
>
2
or
C
.
DEFAULT_DEBUG
:
display
.
display
(
"the full traceback was:
\n\n
%
s"
%
traceback
.
format_exc
())
else
:
display
.
display
(
"to see the full traceback, use -vvv"
)
sys
.
exit
(
250
)
if
C
.
DEFAULT_DEBUG
:
raise
else
:
sys
.
exit
(
250
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment