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
bd7de28a
Commit
bd7de28a
authored
Aug 02, 2012
by
Michael DeHaan
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #778 from skvidal/devel
remove the tab I found
parents
0394ef77
4d29cd6e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
lib/ansible/callbacks.py
+1
-1
library/virt
+3
-2
No files found.
lib/ansible/callbacks.py
View file @
bd7de28a
...
...
@@ -312,7 +312,7 @@ class PlaybookRunnerCallbacks(DefaultRunnerCallbacks):
def
on_skipped
(
self
,
host
,
item
=
None
):
msg
=
''
msg
=
''
if
item
:
msg
=
"skipping: [
%
s] => (item=
%
s)"
%
(
host
,
item
)
else
:
...
...
library/virt
View file @
bd7de28a
...
...
@@ -312,6 +312,7 @@ def core(module):
v
=
Virt
()
res
=
{}
if
state
:
if
not
guest
:
module
.
fail_json
(
msg
=
"state change requires a guest specified"
)
...
...
@@ -337,13 +338,13 @@ def core(module):
res
=
getattr
(
v
,
command
)(
guest
)
if
type
(
res
)
!=
dict
:
res
=
{
command
:
res
}
return
rc
,
res
return
VIRT_SUCCESS
,
res
elif
hasattr
(
v
,
command
):
res
=
getattr
(
v
,
command
)()
if
type
(
res
)
!=
dict
:
res
=
{
command
:
res
}
return
rc
,
res
return
VIRT_SUCCESS
,
res
else
:
module
.
fail_json
(
msg
=
"Command
%
s not recognized"
%
basecmd
)
...
...
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