From 4bb53aa64419fb78090802d23eaace6345cf1f37 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Goc=C5=82awski?= Date: Tue, 6 Mar 2018 15:55:05 +0100 Subject: [PATCH] Fix starting cluster with newest minikube. dashboard-rc.yaml no longer exists. https://github.com/kubernetes/minikube/pull/2409 --- sw_cli/minikube.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sw_cli/minikube.py b/sw_cli/minikube.py index d46a45c..691f921 100644 --- a/sw_cli/minikube.py +++ b/sw_cli/minikube.py @@ -112,7 +112,7 @@ def _apply_dashboard_fix_if_needed(self): logger.info('Applying dashboard fix...') with sh.contrib.sudo(password=self._sudo_password, _with=True): dashboard_addon_path = '/etc/kubernetes/addons/dashboard-rc.yaml' - if '1.7.0' in sh.cat(dashboard_addon_path): + if os.path.isfile(dashboard_addon_path) and '1.7.0' in sh.cat(dashboard_addon_path): logger.info('Replacing dashboard addon file...') sh.sed('-i', 's/1.7.0/1.7.1/g', dashboard_addon_path) logger.info('Dashboard addon file replaced')