https://pulumi.com logo
#python
Title
b

broad-hairdresser-1495

03/02/2021, 5:03 PM
Hi, im using Pulumi in python:
Copy code
from pulumi.x import automation as auto
stack = auto.create_or_select_stack(stack_name=stack_name,
                                    project_name=project_name,
                                    program=pulumi_program)
resp = stack.preview()
this preview is without
--diff
, is it possible to use this with diff flag? Right now im changing this in
Python391\Lib\site-packages\pulumi\x\automation\_stack.py
Copy code
def preview(self,
                parallel: Optional[int] = None,.....
from
args = ["preview"]
to
args = ["preview", "--diff"]
r

red-match-15116

03/02/2021, 5:08 PM
Hi! The ability to pass in
--diff
as an option was just recently added and will be included in the release this week (I believe it’s scheduled for tomorrow).
❤️ 1
🎉 1
2 Views