Remove extra container check

This code is only ever called from functions which have already
checked if the target is a container, so the check is duplicate.

Change-Id: If63269719881c04804d6d17f6134cc67ab0bb9a7
This commit is contained in:
Jonathan Rosser 2023-10-24 13:25:25 +01:00
parent 4615ef2930
commit 362f98ca93
1 changed files with 0 additions and 3 deletions

View File

@ -437,9 +437,6 @@ class Connection(SSH.Connection):
so that a container lookup is not required on a subsequent
command within the same task.
"""
if not self.is_container:
return 1, ''
pid_path = """/proc/%s"""
if not subdir:
subdir = 'root'