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
34763733
Commit
34763733
authored
Apr 13, 2012
by
Michael DeHaan
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote branch 'public/integration' into integration
parents
c3cad500
aaecf705
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
4 deletions
+6
-4
bin/ansible
+2
-0
lib/ansible/runner.py
+1
-1
library/virt
+2
-2
library/yum
+1
-1
No files found.
bin/ansible
View file @
34763733
...
...
@@ -151,6 +151,8 @@ class Cli(object):
clock
=
clock
-
options
.
poll_interval
time
.
sleep
(
options
.
poll_interval
)
poll_hosts
=
self
.
hosts_to_poll
(
poll_results
)
if
len
(
poll_hosts
)
==
0
:
break
########################################################
...
...
lib/ansible/runner.py
View file @
34763733
...
...
@@ -121,7 +121,7 @@ class Runner(object):
euid
=
pwd
.
getpwuid
(
os
.
geteuid
())[
0
]
if
self
.
transport
==
'local'
and
self
.
remote_user
!=
euid
:
raise
Exception
(
"User mismatch: expected
%
s, but is
%
s"
%
(
self
.
remote_user
,
euid
))
if
type
(
self
.
module_args
)
!=
str
and
type
(
self
.
module_args
)
!=
dict
:
if
type
(
self
.
module_args
)
not
in
[
str
,
unicode
,
dict
]
:
raise
Exception
(
"module_args must be a string or dict:
%
s"
%
self
.
module_args
)
self
.
_tmp_paths
=
{}
...
...
library/virt
View file @
34763733
...
...
@@ -297,7 +297,7 @@ class Virt(object):
"""
Stop a domain, and then wipe it from the face of the earth.
by deleting the disk image and it
'
s configuration file.
by deleting the disk image and its configuration file.
"""
self
.
__get_conn
()
...
...
@@ -316,7 +316,7 @@ class Virt(object):
def
get_xml
(
self
,
vmid
):
"""
Rec
ie
ve a Vm id as input
Rec
ei
ve a Vm id as input
Return an xml describing vm config returned by a libvirt call
"""
conn
=
libvirt
.
openReadOnly
(
None
)
...
...
library/yum
View file @
34763733
...
...
@@ -68,7 +68,7 @@ def pkg_to_dict(po):
return
d
def
list_stuff
(
my
,
stuff
):
# FIXME - there are po
i
tential tracebacks that could occur here
# FIXME - there are potential tracebacks that could occur here
# need some more catching for them so we can see what happened
if
stuff
==
'installed'
:
return
[
pkg_to_dict
(
po
)
for
po
in
my
.
rpmdb
]
...
...
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