Skip to content

Commit

Permalink
fix(k3d): proper handling of unsuccessful cluster start
Browse files Browse the repository at this point in the history
  • Loading branch information
Schille committed Feb 22, 2022
1 parent c0e603c commit 62816a3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion unikube/local/providers/k3d/k3d.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,9 @@ def create(

def start(self):
arguments = ["cluster", "start", self.k3d_cluster_name]
self._execute(arguments)
p = self._execute(arguments)
if p.returncode != 0:
return False
data = self.storage.get()
data.kubeconfig_path = self.get_kubeconfig()
self.storage.set(data)
Expand Down

0 comments on commit 62816a3

Please sign in to comment.