add wait flag to updateExistingConfigFromFlags

pull/7449/head
Medya Gh 2020-04-06 04:11:06 -07:00
parent ee1f8fffb3
commit 84693eaf0a
1 changed files with 4 additions and 1 deletions

View File

@ -469,7 +469,10 @@ func updateExistingConfigFromFlags(cmd *cobra.Command, existing *config.ClusterC
existing.KubernetesConfig.EnableDefaultCNI = viper.GetBool(enableDefaultCNI)
}
existing.VerifyComponents = interpretWaitFlag(*cmd)
if cmd.Flags().Changed(waitComponents) {
existing.VerifyComponents = interpretWaitFlag(*cmd)
}
return *existing
}