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
d277c6b8
Commit
d277c6b8
authored
Apr 02, 2015
by
Toshio Kuratomi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Few more py3 cleanups
parent
ac6b7045
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
v2/bin/ansible-playbook
+4
-3
No files found.
v2/bin/ansible-playbook
View file @
d277c6b8
#!/usr/bin/env python
#!/usr/bin/env python
from
__future__
import
print_function
from
__future__
import
(
absolute_import
,
division
,
print_function
)
__metaclass__
=
type
import
os
import
os
import
stat
import
stat
...
@@ -136,11 +137,11 @@ if __name__ == "__main__":
...
@@ -136,11 +137,11 @@ if __name__ == "__main__":
#display(" ", log_only=True)
#display(" ", log_only=True)
try
:
try
:
sys
.
exit
(
main
(
sys
.
argv
[
1
:]))
sys
.
exit
(
main
(
sys
.
argv
[
1
:]))
except
AnsibleError
,
e
:
except
AnsibleError
as
e
:
#display("ERROR: %s" % e, color='red', stderr=True)
#display("ERROR: %s" % e, color='red', stderr=True)
print
(
e
)
print
(
e
)
sys
.
exit
(
1
)
sys
.
exit
(
1
)
except
KeyboardInterrupt
,
ke
:
except
KeyboardInterrupt
:
#display("ERROR: interrupted", color='red', stderr=True)
#display("ERROR: interrupted", color='red', stderr=True)
print
(
"keyboard interrupt"
)
print
(
"keyboard interrupt"
)
sys
.
exit
(
1
)
sys
.
exit
(
1
)
...
...
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