Only prune the trailing spaces in Python automation result (#8160)

This commit is contained in:
iamjekyun 2021-10-12 02:26:22 +09:00 committed by GitHub
parent 20287afdd7
commit 1bb85ca98c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

View file

@ -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

View file

@ -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)