--download-only should download drivers

pull/6111/head
tstromberg 2019-12-18 09:46:36 -08:00
parent 6208b6cc27
commit 98508253a5
1 changed files with 2 additions and 4 deletions

View File

@ -304,10 +304,8 @@ func runStart(cmd *cobra.Command, args []string) {
validateFlags(cmd, driverName)
validateUser(driverName)
// No need to install a driver in download-only mode
if !viper.GetBool(downloadOnly) {
updateDriver(driverName)
}
// Download & update the driver, even in --download-only mode
updateDriver(driverName)
k8sVersion, isUpgrade := getKubernetesVersion(existing)
config, err := generateCfgFromFlags(cmd, k8sVersion, driverName)