Skip to content

Commit bfe996b

Browse files
committed
k8sclient: fix typo in ensure_oc_installed
Signed-off-by: Salvatore Daniele <[email protected]>
1 parent 743d635 commit bfe996b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

k8sClient.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ def _ensure_oc_installed(self) -> None:
2222
if self._host.run("which oc").returncode == 0:
2323
return
2424
uname = self._host.run_or_die("uname -m").out
25-
url = f"https://mirror.openshift.com/pub/openshift-v4/${uname}/clients/ocp/stable/openshift-client-linux.tar.gz"
26-
self._host.run_or_die(f"curl {url} | sudo tar -U -C /usr/local/bin -xzf -")
25+
url = f"https://mirror.openshift.com/pub/openshift-v4/{uname}/clients/ocp/stable/openshift-client-linux.tar.gz"
26+
self._host.run_or_die(f"curl {url} | sudo tar -U -C /usr/local/bin -xzf")
2727

2828
def is_ready(self, name: str) -> bool:
2929
for e in self._client.list_node().items:

0 commit comments

Comments
 (0)