From 1bb85ca98c90f2161fe915df083d47c56c135e4d Mon Sep 17 00:00:00 2001 From: iamjekyun <34101059+iamjekyun@users.noreply.github.com> Date: Tue, 12 Oct 2021 02:26:22 +0900 Subject: [PATCH] Only prune the trailing spaces in Python automation result (#8160) --- CHANGELOG_PENDING.md | 2 ++ sdk/python/lib/pulumi/automation/_cmd.py | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGELOG_PENDING.md b/CHANGELOG_PENDING.md index 4097a030c..0072ca802 100644 --- a/CHANGELOG_PENDING.md +++ b/CHANGELOG_PENDING.md @@ -1,5 +1,7 @@ ### Improvements +- [automation/python] - Use `rstrip` rather than `strip` for the sake of indentation + [#8160](https://github.com/pulumi/pulumi/pull/8160) - [codegen/nodejs] - Add helper function forms `$fnOutput` that accept `Input`s, return an `Output`, and wrap the underlying `$fn` call. This change addreses diff --git a/sdk/python/lib/pulumi/automation/_cmd.py b/sdk/python/lib/pulumi/automation/_cmd.py index 17c2b7676..e24daa859 100644 --- a/sdk/python/lib/pulumi/automation/_cmd.py +++ b/sdk/python/lib/pulumi/automation/_cmd.py @@ -60,7 +60,7 @@ def _run_pulumi_cmd(args: List[str], if output == "" and process.poll() is not None: break if output: - text = output.strip() + text = output.rstrip() if on_output: on_output(text) stdout_chunks.append(text)