Skip to content

Commit

Permalink
Merge pull request #289 from unikubehq/fix/#281-2
Browse files Browse the repository at this point in the history
fix(k3d): proper handling of unsuccessful cluster start
  • Loading branch information
schwobaseggl authored Feb 22, 2022
2 parents fdc98f0 + 62816a3 commit c4fd969
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 c4fd969

Please sign in to comment.