Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
J
jumpserver
Project
Project
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
ops
jumpserver
Commits
7c4aefd9
Commit
7c4aefd9
authored
8 years ago
by
Administrator
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
兼容py3测试
parent
cd22c390
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
ansible_api.py
apps/ops/utils/ansible_api.py
+4
-4
No files found.
apps/ops/utils/ansible_api.py
View file @
7c4aefd9
# ~*~ coding: utf-8 ~*~
from
__future__
import
unicode_literals
from
__future__
import
unicode_literals
,
print_function
import
os
import
json
...
...
@@ -304,7 +304,7 @@ class CallbackModule(CallbackBase):
self
.
output
[
'plays'
]
=
self
.
results
self
.
output
[
'stats'
]
=
summary
print
"summary:
%
s"
%
summary
print
(
"summary:
%
s"
,
summary
)
class
PlayBookRunner
(
InventoryMixin
):
...
...
@@ -513,8 +513,8 @@ def test_run():
hoc
=
ADHocRunner
(
conf
,
play_source
,
*
assets
)
uuid
=
"tasker-"
+
uuid4
()
.
hex
ext_code
,
result
=
hoc
.
run
(
"test_task"
,
uuid
)
print
ext_code
print
result
print
(
ext_code
)
print
(
result
)
if
__name__
==
"__main__"
:
...
...
This diff is collapsed.
Click to expand it.
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