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
de4b8dc5
Commit
de4b8dc5
authored
Aug 14, 2012
by
Michael DeHaan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Can use fail JSON here, remove debug statement
parent
58c975d6
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
4 deletions
+1
-4
library/yum
+1
-4
No files found.
library/yum
View file @
de4b8dc5
...
@@ -281,8 +281,7 @@ def install(module, items, repoq, yum_basecmd, conf_file):
...
@@ -281,8 +281,7 @@ def install(module, items, repoq, yum_basecmd, conf_file):
pkglist
=
what_provides
(
module
,
repoq
,
spec
,
conf_file
)
pkglist
=
what_provides
(
module
,
repoq
,
spec
,
conf_file
)
if
not
pkglist
:
if
not
pkglist
:
res
[
'msg'
]
+=
"No Package matching '
%
s' found available, installed or updated"
%
spec
res
[
'msg'
]
+=
"No Package matching '
%
s' found available, installed or updated"
%
spec
res
[
'failed'
]
=
True
module
.
fail_json
(
**
res
)
module
.
exit_json
(
**
res
)
# if any of them are installed
# if any of them are installed
# then nothing to do
# then nothing to do
...
@@ -321,8 +320,6 @@ def install(module, items, repoq, yum_basecmd, conf_file):
...
@@ -321,8 +320,6 @@ def install(module, items, repoq, yum_basecmd, conf_file):
def
remove
(
module
,
items
,
repoq
,
yum_basecmd
,
conf_file
):
def
remove
(
module
,
items
,
repoq
,
yum_basecmd
,
conf_file
):
print
"DEBUG:
%
s/
%
s/
%
s/
%
s/
%
s"
%
(
module
,
items
,
repoq
,
yum_basecmd
,
conf_file
)
res
=
{}
res
=
{}
res
[
'results'
]
=
[]
res
[
'results'
]
=
[]
res
[
'msg'
]
=
''
res
[
'msg'
]
=
''
...
...
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