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
626e8f35
Commit
626e8f35
authored
Apr 19, 2012
by
Daniel Néri
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix two misspellings of the apt module's "fail_json" function
parent
4578b172
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
library/apt
+2
-2
No files found.
library/apt
View file @
626e8f35
...
...
@@ -76,7 +76,7 @@ def install(pkgspec, cache, upgrade=False):
cmd
=
"%s -q -y install '%s'"
%
(
APT
,
pkgspec
)
rc
,
out
,
err
=
run_apt
(
cmd
)
if
rc
:
json_fail
(
msg
=
"'apt-get install %s' failed: %s"
%
(
pkgspec
,
err
))
fail_json
(
msg
=
"'apt-get install %s' failed: %s"
%
(
pkgspec
,
err
))
return
True
else
:
return
False
...
...
@@ -90,7 +90,7 @@ def remove(pkgspec, cache, purge=False):
cmd
=
"%s -q -y %s remove '%s'"
%
(
APT
,
purge
,
pkgspec
)
rc
,
out
,
err
=
run_apt
(
cmd
)
if
rc
:
json_fail
(
msg
=
"'apt-get remove %s' failed: %s"
%
(
pkgspec
,
err
))
fail_json
(
msg
=
"'apt-get remove %s' failed: %s"
%
(
pkgspec
,
err
))
return
True
...
...
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