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
14cf3c4d
Commit
14cf3c4d
authored
Jun 29, 2014
by
Michael DeHaan
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #7972 from mscherer/fix_lxc
libvirt_lxc: Fix exec_command prototype for the plugin
parents
2d53bc41
f0a71392
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletions
+7
-1
lib/ansible/runner/connection_plugins/libvirt_lxc.py
+7
-1
No files found.
lib/ansible/runner/connection_plugins/libvirt_lxc.py
View file @
14cf3c4d
...
@@ -65,9 +65,15 @@ class Connection(object):
...
@@ -65,9 +65,15 @@ class Connection(object):
local_cmd
=
'
%
s -q -c lxc:/// lxc-enter-namespace
%
s --
%
s'
%
(
self
.
cmd
,
self
.
lxc
,
cmd
)
local_cmd
=
'
%
s -q -c lxc:/// lxc-enter-namespace
%
s --
%
s'
%
(
self
.
cmd
,
self
.
lxc
,
cmd
)
return
local_cmd
return
local_cmd
def
exec_command
(
self
,
cmd
,
tmp_path
,
sudo_user
,
sudoable
=
False
,
executable
=
'/bin/sh'
):
def
exec_command
(
self
,
cmd
,
tmp_path
,
sudo_user
,
sudoable
=
False
,
executable
=
'/bin/sh'
,
in_data
=
None
,
su
=
None
,
su_user
=
None
):
''' run a command on the chroot '''
''' run a command on the chroot '''
if
su
or
su_user
:
raise
errors
.
AnsibleError
(
"Internal Error: this module does not support running commands via su"
)
if
in_data
:
raise
errors
.
AnsibleError
(
"Internal Error: this module does not support optimized module pipelining"
)
# We enter lxc as root so sudo stuff can be ignored
# We enter lxc as root so sudo stuff can be ignored
local_cmd
=
self
.
_generate_cmd
(
executable
,
cmd
)
local_cmd
=
self
.
_generate_cmd
(
executable
,
cmd
)
...
...
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