Skip to content

Commit c5164df

Browse files
committed
Use sync export if format is YAML
1 parent 6e9cd21 commit c5164df

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cli/config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ def __export_config_async(endpoint: platform.Platform, what: list[str], **kwargs
255255

256256

257257
def __export_config(endpoint: platform.Platform, what: list[str], **kwargs) -> None:
258-
if kwargs[options.KEYS] or options.WHAT_PROJECTS not in what:
258+
if kwargs[options.KEYS] or options.WHAT_PROJECTS not in what or kwargs[options.FORMAT] != "json":
259259
__export_config_sync(endpoint=endpoint, what=what, **kwargs)
260260
else:
261261
__export_config_async(endpoint=endpoint, what=what, **kwargs)

0 commit comments

Comments
 (0)