fix validateDriver() to exit when detects an error
parent
8c8ceabdf4
commit
fb2c3ed4b7
|
|
@ -679,6 +679,10 @@ func validateDriver(ds registry.DriverState, existing *config.ClusterConfig) {
|
|||
}
|
||||
exit.WithCodeT(exit.Unavailable, "{{.driver}} does not appear to be installed", out.V{"driver": name})
|
||||
}
|
||||
|
||||
if !viper.GetBool(force) {
|
||||
exit.WithCodeT(exit.Unavailable, "Failed to validate '{{.driver}}' driver", out.V{"driver": name})
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -184,6 +184,7 @@
|
|||
"Failed to stop node {{.name}}": "",
|
||||
"Failed to update cluster": "",
|
||||
"Failed to update config": "",
|
||||
"Failed to validate '{{.driver}}' driver": "",
|
||||
"Failed unmount: {{.error}}": "",
|
||||
"File permissions used for the mount": "",
|
||||
"Filter to use only VM Drivers": "",
|
||||
|
|
|
|||
|
|
@ -185,6 +185,7 @@
|
|||
"Failed to stop node {{.name}}": "",
|
||||
"Failed to update cluster": "",
|
||||
"Failed to update config": "",
|
||||
"Failed to validate '{{.driver}}' driver": "",
|
||||
"Failed unmount: {{.error}}": "",
|
||||
"File permissions used for the mount": "",
|
||||
"Filter to use only VM Drivers": "",
|
||||
|
|
|
|||
|
|
@ -182,6 +182,7 @@
|
|||
"Failed to stop node {{.name}}": "",
|
||||
"Failed to update cluster": "",
|
||||
"Failed to update config": "",
|
||||
"Failed to validate '{{.driver}}' driver": "",
|
||||
"Failed unmount: {{.error}}": "",
|
||||
"File permissions used for the mount": "",
|
||||
"Filter to use only VM Drivers": "",
|
||||
|
|
|
|||
|
|
@ -193,6 +193,7 @@
|
|||
"Failed to stop node {{.name}}": "",
|
||||
"Failed to update cluster": "",
|
||||
"Failed to update config": "",
|
||||
"Failed to validate '{{.driver}}' driver": "",
|
||||
"Failed unmount: {{.error}}": "",
|
||||
"File permissions used for the mount": "",
|
||||
"Filter to use only VM Drivers": "",
|
||||
|
|
|
|||
|
|
@ -197,6 +197,7 @@
|
|||
"Failed to stop node {{.name}}": "노드 {{.name}} 중지에 실패하였습니다",
|
||||
"Failed to update cluster": "클러스터를 수정하는 데 실패하였습니다",
|
||||
"Failed to update config": "컨피그를 수정하는 데 실패하였습니다",
|
||||
"Failed to validate '{{.driver}}' driver": "",
|
||||
"Failed unmount: {{.error}}": "마운트 해제에 실패하였습니다: {{.error}}",
|
||||
"File permissions used for the mount": "",
|
||||
"Filter to use only VM Drivers": "",
|
||||
|
|
|
|||
|
|
@ -190,6 +190,7 @@
|
|||
"Failed to setup kubeconfig": "Konfiguracja kubeconfig nie powiodła się",
|
||||
"Failed to stop node {{.name}}": "",
|
||||
"Failed to update cluster": "Aktualizacja klastra nie powiodła się",
|
||||
"Failed to validate '{{.driver}}' driver": "",
|
||||
"Failed to update config": "Aktualizacja konfiguracji nie powiodła się",
|
||||
"Failed unmount: {{.error}}": "",
|
||||
"File permissions used for the mount": "",
|
||||
|
|
|
|||
|
|
@ -240,6 +240,7 @@
|
|||
"Failed to stop node {{.name}}": "",
|
||||
"Failed to update cluster": "更新 cluster 失败",
|
||||
"Failed to update config": "更新 config 失败",
|
||||
"Failed to validate '{{.driver}}' driver": "",
|
||||
"Failed unmount: {{.error}}": "unmount 失败:{{.error}}",
|
||||
"File permissions used for the mount": "用于 mount 的文件权限",
|
||||
"Filter to use only VM Drivers": "",
|
||||
|
|
|
|||
Loading…
Reference in New Issue