diff --git a/sos/collector/clusters/ocp.py b/sos/collector/clusters/ocp.py index e0db93d365..61785ab6a9 100644 --- a/sos/collector/clusters/ocp.py +++ b/sos/collector/clusters/ocp.py @@ -79,7 +79,7 @@ def oc_cmd(self): self._oc_cmd = 'oc' if self.primary.host.in_container(): _oc_path = self.primary.run_command( - 'which oc', chroot=self.primary.host.sysroot + 'which oc' ) if _oc_path['status'] == 0: self._oc_cmd = os.path.join(