Increase yaml.dump width to 255 characters
Change-Id: I2479f86f038cb801bc3257afaa7b302c45a34ef5
diff --git a/reclass_tools/render.py b/reclass_tools/render.py
index 285858f..9623dd6 100644
--- a/reclass_tools/render.py
+++ b/reclass_tools/render.py
@@ -33,7 +33,7 @@
:param env_name: name for new environment that will be created
"""
def toyaml(value, width=0, indentfirst=False):
- string = yaml.dump(value, default_flow_style=False)
+ string = yaml.dump(value, default_flow_style=False, width=255)
if string.splitlines():
return (
' ' * width * indentfirst +
@@ -72,7 +72,8 @@
except UndefinedVariableInTemplate as undefined_err:
context_str = yaml.dump(
undefined_err.context,
- default_flow_style=False
+ default_flow_style=False,
+ width=255
)
print('=' * 15 + ' Context: ' + '=' * 15 +
'\n{}'.format(context_str) + '='*40)