@@ -134,15 +134,6 @@ def run_from_cli_args(cli_args: 'CliArgs', client_factory: ClientFactory) -> Non
134134 if cli_args .table :
135135 cli_args .format = 'table'
136136
137- if cli_args .deprecated_ssl is not None :
138- click .secho (
139- "Warning: The --ssl/--no-ssl CLI options are deprecated and will be removed in a future release. "
140- "Please use the \" default_ssl_mode\" config option or --ssl-mode CLI flag instead. "
141- f"See issue { ISSUES_URL } /1507" ,
142- err = True ,
143- fg = "yellow" ,
144- )
145-
146137 # ssh_port and ssh_config_path have truthy defaults and are not included
147138 if (
148139 any ([
@@ -288,25 +279,12 @@ def run_from_cli_args(cli_args: 'CliArgs', client_factory: ClientFactory) -> Non
288279 keepalive_ticks = cli_args .keepalive_ticks if cli_args .keepalive_ticks is not None else mycli .default_keepalive_ticks
289280 ssl_mode = cli_args .ssl_mode or mycli .ssl_mode
290281
291- # if there is a mismatch between the ssl_mode value and other sources of ssl config, show a warning
292- # specifically using "is False" to not pickup the case where cli_args.deprecated_ssl is None (not set by the user)
293- if cli_args .deprecated_ssl and ssl_mode == "off" or cli_args .deprecated_ssl is False and ssl_mode in ("auto" , "on" ):
294- click .secho (
295- f"Warning: The current ssl_mode value of '{ ssl_mode } ' is overriding the value provided by "
296- f"either the --ssl/--no-ssl CLI options or a DSN URI parameter (ssl={ cli_args .deprecated_ssl } )." ,
297- err = True ,
298- fg = "yellow" ,
299- )
300-
301- # configure SSL if ssl_mode is auto/on or if
302- # cli_args.deprecated_ssl = True (from --ssl or a DSN URI) and ssl_mode is None
303- if ssl_mode in ("auto" , "on" ) or (cli_args .deprecated_ssl and ssl_mode is None ):
282+ if ssl_mode in ("auto" , "on" ):
304283 if cli_args .socket and ssl_mode == 'auto' :
305284 ssl = None
306285 else :
307286 ssl = {
308287 "mode" : ssl_mode ,
309- "enable" : cli_args .deprecated_ssl , # todo: why is this set at all?
310288 "ca" : cli_args .ssl_ca and os .path .expanduser (cli_args .ssl_ca ),
311289 "cert" : cli_args .ssl_cert and os .path .expanduser (cli_args .ssl_cert ),
312290 "key" : cli_args .ssl_key and os .path .expanduser (cli_args .ssl_key ),
0 commit comments