https://pulumi.com logo
#automation-api
Title
# automation-api
h

hundreds-musician-51496

11/04/2020, 1:32 AM
If I call
refresh()
on a stack that doesn't exist, what happens? Is that an error or no-op? (Using TypeScript if it matters)
l

lemon-agent-27707

11/04/2020, 1:47 AM
You will get an error if you try to
select
a stack that does not exist. If you refresh a stack that has been created, but contains no resources it will be a no-op effectively.
👍 1
h

hundreds-musician-51496

11/04/2020, 4:49 PM
Cool, fortunately the examples call
createOrSelectStack
(which I used as a starting point) so I think I'm good.
👍 1