summaryrefslogtreecommitdiff
path: root/oslo_rootwrap/daemon.py
diff options
context:
space:
mode:
Diffstat (limited to 'oslo_rootwrap/daemon.py')
-rw-r--r--oslo_rootwrap/daemon.py6
1 files changed, 1 insertions, 5 deletions
diff --git a/oslo_rootwrap/daemon.py b/oslo_rootwrap/daemon.py
index 7bda2c2..21c3717 100644
--- a/oslo_rootwrap/daemon.py
+++ b/oslo_rootwrap/daemon.py
@@ -43,16 +43,12 @@ class RootwrapClass(object):
self.config = config
self.filters = filters
- def run_one_command(self, userargs, env=None, stdin=None):
- if env is None:
- env = {}
-
+ def run_one_command(self, userargs, stdin=None):
obj = wrapper.start_subprocess(
self.filters, userargs,
exec_dirs=self.config.exec_dirs,
log=self.config.use_syslog,
close_fds=True,
- env=env,
stdin=subprocess.PIPE,
stdout=subprocess.PIPE,
stderr=subprocess.PIPE)