From 125e07af581a230ccc63b4bac862286378d56489 Mon Sep 17 00:00:00 2001 From: hugo Date: Wed, 4 Dec 2024 08:58:10 -0800 Subject: [PATCH] changing yaml dumping for safe round tripping --- saturn_client/cli/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/saturn_client/cli/utils.py b/saturn_client/cli/utils.py index 645bc95..97d482f 100644 --- a/saturn_client/cli/utils.py +++ b/saturn_client/cli/utils.py @@ -50,7 +50,7 @@ def print_resources(resource: Union[List, Dict], output: str = OutputFormat.TABL elif output == OutputFormat.YAML: yaml = YAML() yaml.default_flow_style = False - yaml.width = -1 + yaml.width = sys.maxsize if isinstance(resource, list): resource = [maybe_sanitize_yaml(x) for x in resource] yaml.dump_all(resource, sys.stdout)