Skip to content

Commit

Permalink
Fix starting cluster with newest minikube.
Browse files Browse the repository at this point in the history
dashboard-rc.yaml no longer exists.
kubernetes/minikube#2409
  • Loading branch information
jgoclawski authored and Andrzej Miciałkiewicz committed Mar 8, 2018
1 parent 8bf3bd1 commit 4bb53aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sw_cli/minikube.py
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down

0 comments on commit 4bb53aa

Please sign in to comment.