Change in vdsm[master]: vds-tool: keep env on sysV service

mtayer at redhat.com mtayer at redhat.com
Mon Mar 31 14:16:08 UTC 2014


mooli tayer has uploaded a new change for review.

Change subject: vds-tool: keep env on sysV service
......................................................................

vds-tool: keep env on sysV service

Update env when SYSTEMCTL_SKIP_REDIRECT is set instead of dropping
it.

Change-Id: Ifc97301d26cbae4ed0aafff4d2edc398806e03f2
Bug-Url: https://bugzilla.redhat.com/show_bug.cgi?id=1081621
Signed-off-by: Donn Seeley <donn.seeley at windriver.com>
Signed-off-by: Mooli Tayer <mtayer at redhat.com>
---
M lib/vdsm/tool/service.py
1 file changed, 2 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.ovirt.org:29418/vdsm refs/changes/55/26255/1

diff --git a/lib/vdsm/tool/service.py b/lib/vdsm/tool/service.py
index 6793ef3..444ef80 100644
--- a/lib/vdsm/tool/service.py
+++ b/lib/vdsm/tool/service.py
@@ -263,7 +263,8 @@
 except OSError:
     pass
 else:
-    _sysvEnv = {'SYSTEMCTL_SKIP_REDIRECT': '1'}
+    _sysvEnv = os.environ.copy()
+    _sysvEnv['SYSTEMCTL_SKIP_REDIRECT'] = '1'
     _execSysvEnv = functools.partial(execCmd, env=_sysvEnv)
 
     @_sysvNative


-- 
To view, visit http://gerrit.ovirt.org/26255
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ifc97301d26cbae4ed0aafff4d2edc398806e03f2
Gerrit-PatchSet: 1
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: mooli tayer <mtayer at redhat.com>


More information about the vdsm-patches mailing list