From 17cfaced3d33b454a86b433fbe3a211f3e228bef Mon Sep 17 00:00:00 2001 From: Sriharsha Tikkireddy Date: Tue, 28 Apr 2020 08:04:47 -0400 Subject: [PATCH] removed commented out code --- databricks/utils.go | 30 ------------------------------ 1 file changed, 30 deletions(-) diff --git a/databricks/utils.go b/databricks/utils.go index 34ceb4a53..4c770904f 100644 --- a/databricks/utils.go +++ b/databricks/utils.go @@ -102,36 +102,6 @@ func fetchStringFromCheckers(strVal interface{}) string { return stringChecker.execute(strVal) } -//func validateClusterLogConf(value, meta interface{}) error { -// clusterLogConfMap := getMapFromOneItemSet(value) -// if clusterLogConfMap != nil && -// len(clusterLogConfMap["dbfs_destination"].(string)) > 0 && -// len(clusterLogConfMap["s3_destination"].(string)) > 0 { -// return errors.New("S3 destination and DBFS destination cant both be filled out " + -// "in cluster_log_conf!") -// } -// return nil -//} - -//func validateInitScripts(value, meta interface{}) error { -// initScripts := value.(*schema.Set).List() -// for _, v := range initScripts { -// initScriptsMap := v.(map[string]interface{}) -// if len(initScriptsMap["dbfs_destination"].(string)) > 0 && -// len(initScriptsMap["s3_destination"].(string)) > 0 { -// return errors.New("S3 destination and DBFS destination cant both be filled out in the " + -// "init scripts!") -// } -// if len(initScriptsMap["s3_destination"].(string)) > 0 && -// (len(initScriptsMap["s3_region"].(string)) <= 0 && -// len(initScriptsMap["s3_endpoint"].(string)) <= 0) { -// return errors.New("If S3 destination is set then s3_region or s3_endpoint needs " + -// "to be set.!") -// } -// } -// return nil -//} - func changeClusterIntoRunningState(clusterID string, client service.DBApiClient) error { //return nil clusterInfo, err := client.Clusters().Get(clusterID)