Skip to content

Conversation

@fnickels
Copy link
Contributor

Fixes Bug reported in #31442

The code to reset the current working directory was previously called after the local providers checked in implicitProviderSource() is called.

I simply moved up the block of code handling the reset of the current working directory ahead of providerSource() which subsequently calls implicitProviderSource() .

I have compiled and tested the code to verify it fixes the cited issue, but can not be 100% sure there are no other side effects from this change. I cannot think of any situation where you need to maintain the CWD when specifying -chdir, but there could be some side effects I am not aware of.

@hashicorp-cla
Copy link

hashicorp-cla commented Jul 14, 2022

CLA assistant check
All committers have signed the CLA.

@crw
Copy link
Contributor

crw commented Jul 15, 2022

Thanks for this submission. Although I cannot commit to having this PR reviewed at this time, we acknowledge your contribution and appreciate it! We will discuss it in our weekly triage meeting. Thanks again!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants