mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-27 01:51:59 +00:00
Export only str and bool for build configs
This commit is contained in:
parent
4bdafed801
commit
bd2b0b4338
@ -264,6 +264,8 @@ class BuildConfig:
|
|||||||
def process(field_name: str, field: Union[bool, str]) -> str:
|
def process(field_name: str, field: Union[bool, str]) -> str:
|
||||||
if isinstance(field, bool):
|
if isinstance(field, bool):
|
||||||
field = str(field).lower()
|
field = str(field).lower()
|
||||||
|
elif not isinstance(field, str):
|
||||||
|
field = ""
|
||||||
if export:
|
if export:
|
||||||
return f"export BUILD_{field_name.upper()}={repr(field)}"
|
return f"export BUILD_{field_name.upper()}={repr(field)}"
|
||||||
return f"BUILD_{field_name.upper()}={field}"
|
return f"BUILD_{field_name.upper()}={field}"
|
||||||
|
Loading…
Reference in New Issue
Block a user