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
8808c814
Commit
8808c814
authored
Mar 10, 2012
by
Michael DeHaan
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #89 from skvidal/feature
touch up to yum module.
parents
209760f8
a99b491b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
3 deletions
+10
-3
library/yum
+10
-3
No files found.
library/yum
View file @
8808c814
...
@@ -77,7 +77,7 @@ def list_stuff(my, stuff):
...
@@ -77,7 +77,7 @@ def list_stuff(my, stuff):
s
=
'disabled'
s
=
'disabled'
if
repo
.
enabled
:
if
repo
.
enabled
:
s
=
'enabled'
s
=
'enabled'
r
[
repo
.
id
]
=
s
t
[
repo
.
id
]
=
s
r
.
append
(
t
)
r
.
append
(
t
)
return
r
return
r
...
@@ -179,7 +179,12 @@ def ensure(my, state, pkgspec):
...
@@ -179,7 +179,12 @@ def ensure(my, state, pkgspec):
'failed'
:
failed
,
'failed'
:
failed
,
'results'
:
out
,
'results'
:
out
,
'errors'
:
err
}
'errors'
:
err
}
#if state == 'latest':
# check to see if this pkg is in an update
# if it is - update it and check to see if it applied
# if it is not - then return
# return { 'changed':False, 'failed':False, 'results':'', 'errors':'' }
return
{
'changed'
:
False
,
return
{
'changed'
:
False
,
'failed'
:
True
,
'failed'
:
True
,
'results'
:
''
,
'results'
:
''
,
...
@@ -205,9 +210,11 @@ def main():
...
@@ -205,9 +210,11 @@ def main():
# update="args"?
# update="args"?
#
#
results
=
{}
args
=
" "
.
join
(
sys
.
argv
[
1
:])
args
=
" "
.
join
(
sys
.
argv
[
1
:])
items
=
shlex
.
split
(
args
)
items
=
shlex
.
split
(
args
)
# if nothing else changes - it fails
results
=
{
'changed'
:
False
,
'failed'
:
True
,
'results'
:
''
,
'errors'
:
args
}
params
=
{}
params
=
{}
for
x
in
items
:
for
x
in
items
:
(
k
,
v
)
=
x
.
split
(
"="
,
1
)
(
k
,
v
)
=
x
.
split
(
"="
,
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