From a9ee4932cb30522549db4866148ef066e2e2ab7d Mon Sep 17 00:00:00 2001 From: Kevin Carter Date: Mon, 5 Feb 2018 12:11:09 -0600 Subject: [PATCH] Fix nsenter commands on centos The follow-context switch is not valid on early releases of systemd. This change removes the optional switch so that nsenter can work on all of our platforms. Change-Id: I13d05ba8bcfe785257a9cf98dbdb6024ec937816 Signed-off-by: Kevin Carter --- connection/ssh.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/connection/ssh.py b/connection/ssh.py index 86f4c58..8600113 100644 --- a/connection/ssh.py +++ b/connection/ssh.py @@ -124,8 +124,7 @@ class Connection(SSH.Connection): ' --net={path}/net' ' --pid={path}/pid' ' --uts={path}/uts' - ' --ipc={path}/ipc' - ' --follow-context').format(path=pid_path) + ' --ipc={path}/ipc').format(path=pid_path) if _pad: cmd = '%s -- su - %s -c %s' % ( _pad,