This message was deleted.
# automation-api
s
This message was deleted.
m
I wanted to open a ticket, and maybe even contribute a fix... but perhaps someone from Pulumi can clarify if this thing should be reported as a bug or a feature require 😅
r
I may be misremembering, but I was under the impression that
Stack.select()
just did
pulumi stack select
, which does not result in an API call, it's just a local operation.
Seems to still be the case: https://github.com/pulumi/pulumi/blob/master/sdk/nodejs/automation/localWorkspace.ts#L431-L437 So really, the REST API and automation API make the same number of API calls for this information
m
This calls the CLI. Do you know for sure that the CLI doesn’t make an API call? I may have misread the code.
r
Yes, I'm fairly certain
pulumi stack select
does not make any API calls, it's been a few years since I worked on this part of Pulumi but it's all local operations as far as I remember it https://github.com/pulumi/pulumi/blob/master/pkg/cmd/pulumi/stack_select.go