File tree Expand file tree Collapse file tree 1 file changed +2
-11
lines changed
ydb/public/tools/lib/cmds Expand file tree Collapse file tree 1 file changed +2
-11
lines changed Original file line number Diff line number Diff line change @@ -359,8 +359,8 @@ def deploy(arguments):
359359 if 'YDB_EXPERIMENTAL_PG' in os .environ :
360360 optionals ['pg_compatible_expirement' ] = True
361361
362- if _is_env_option_enabled ( 'YDB_KAFKA_API_ENABLED' ):
363- kafka_api_port = int ( os . environ . get ( "YDB_KAFKA_PROXY_PORT" , "9092" ))
362+ kafka_api_port = int ( os . environ . get ( "YDB_KAFKA_PROXY_PORT" , "0" ))
363+ if kafka_api_port != 0 :
364364 optionals ['kafka_api_port' ] = kafka_api_port
365365
366366 configuration = KikimrConfigGenerator (
@@ -551,12 +551,3 @@ def start_recipe(args):
551551def stop_recipe (args ):
552552 arguments = produce_arguments (args )
553553 cleanup (arguments )
554-
555-
556- def _is_true_string (s ):
557- s = s .upper ()
558- return s in ['1' , 'TRUE' , 'YES' , 'ON' ]
559-
560-
561- def _is_env_option_enabled (name ):
562- return _is_true_string (os .environ .get (name , "FALSE" ))
You can’t perform that action at this time.
0 commit comments