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 <kevin.carter@rackspace.com>
This commit is contained in:
Kevin Carter 2018-02-05 12:11:09 -06:00 committed by Kevin Carter (cloudnull)
parent 8fcc904d71
commit a9ee4932cb
1 changed files with 1 additions and 2 deletions

View File

@ -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,