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

agreeable-motherboard-1279

10/04/2021, 9:55 AM
Hi, anyone knows a way within an Inline Python program to detect if we are running 'preview' or 'up' ? I have some custom actions within the stack I would ideally only execute during 'up' but not during 'preview' so to NOT alter anything during 'preview'. Thx
b

billowy-army-68599

10/04/2021, 3:02 PM
Copy code
if pulumi.runtime.is_dry_run():
a

agreeable-motherboard-1279

10/04/2021, 3:28 PM
Awesome. Works like a charm. Thx.
2 Views