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
710117e4
Commit
710117e4
authored
Nov 12, 2013
by
James Tanner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Addresses #4628 evaluate package check return properly and exit failure if not present
parent
48ded5e4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
library/packaging/pkgng
+2
-2
No files found.
library/packaging/pkgng
View file @
710117e4
...
@@ -123,8 +123,8 @@ def install_packages(module, pkgin_path, packages, cached, pkgsite):
...
@@ -123,8 +123,8 @@ def install_packages(module, pkgin_path, packages, cached, pkgsite):
if
not
module
.
check_mode
:
if
not
module
.
check_mode
:
rc
,
out
,
err
=
module
.
run_command
(
"
%
s
%
s install -U -y
%
s"
%
(
pkgsite
,
pkgin_path
,
package
))
rc
,
out
,
err
=
module
.
run_command
(
"
%
s
%
s install -U -y
%
s"
%
(
pkgsite
,
pkgin_path
,
package
))
if
not
module
.
check_mode
and
query_package
(
module
,
pkgin_path
,
package
):
if
not
module
.
check_mode
and
not
query_package
(
module
,
pkgin_path
,
package
):
module
.
fail_json
(
msg
=
"failed to install
%
s:
%
s"
%
(
package
,
out
))
module
.
fail_json
(
msg
=
"failed to install
%
s:
%
s"
%
(
package
,
out
)
,
stderr
=
err
)
install_c
+=
1
install_c
+=
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