Skip to content

Commit 003e981

Browse files
authored
Merge 63f9488 into a349c79
2 parents a349c79 + 63f9488 commit 003e981

File tree

1 file changed

+2
-11
lines changed

1 file changed

+2
-11
lines changed

ydb/public/tools/lib/cmds/__init__.py

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff 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):
551551
def 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"))

0 commit comments

Comments
 (0)