Skip to content

Commit f70acf7

Browse files
Remove unused code
1 parent b4338e7 commit f70acf7

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

src/cdpy/dw.py

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -101,15 +101,6 @@ def create_vw(self, cluster_id:str, dbc_id:str, vw_type:str, name:str, template:
101101
autoscaling_min_cluster:int = None, autoscaling_max_cluster:int = None,
102102
common_configs:dict = None, application_configs:dict = None, ldap_groups:list = None,
103103
enable_sso:bool = None, tags:dict = None):
104-
# if autoscaling_min_cluster == 0 and autoscaling_max_cluster == 0:
105-
# autoscaling_options = None
106-
# elif autoscaling_min_cluster == 0 and autoscaling_max_cluster > 0:
107-
# autoscaling_options = dict(maxClusters=autoscaling_max_cluster)
108-
# elif autoscaling_min_cluster > 0 and autoscaling_min_cluster == 0:
109-
# autoscaling_options = dict(minClusters=autoscaling_max_cluster)
110-
# else:
111-
# autoscaling_options = dict(minClusters=autoscaling_max_cluster, maxClusters=autoscaling_max_cluster)
112-
113104
autoscaling = {}
114105
if autoscaling_min_cluster != 0:
115106
autoscaling['minClusters'] = autoscaling_min_cluster
@@ -130,8 +121,6 @@ def create_vw(self, cluster_id:str, dbc_id:str, vw_type:str, name:str, template:
130121
if not enable_sso is None:
131122
config['enableSSO'] = enable_sso
132123

133-
print('autoscaling', autoscaling, 'configs', config)
134-
135124
return self.sdk.call(
136125
svc='dw', func='create_vw', ret_field='vwId', clusterId=cluster_id, dbcId=dbc_id,
137126
vwType=vw_type, name=name, template=template, autoscaling=autoscaling,

0 commit comments

Comments
 (0)