You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Expected that the local path of ~ would be recognized and terraform would proceed normally. However with local_state_tree and local_pillar_roots this isn't working out as expected. Does not seem to be expected behavior since the documentation does not mention this.
Actual Behavior
Error: null_resource.saltmasterless: local_pillar_roots: path '~/saltstack/salt/pillars/' is invalid: stat ~/saltstack/salt/pillars/: no such file or directory
Error: null_resource.saltmasterless: local_state_tree: path '~/saltstack/salt/states/' is invalid: stat ~/saltstack/salt/states/: no such file or directory
Steps to Reproduce
terraform init
terraform plan
Errors out on plan. If I change the path to an absolute paths or relative paths, it works fine:
Sorry this was a problem for you. The ~ character expanding to the current user's home directory is a feature of a POSIX shell. Passing the ~ character within an argument string to most programs will be only be interpreted as a literal ~ character. This is not a limitation with the provisioner, or Terraform in particular.
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.
ghost
locked and limited conversation to collaborators
Mar 30, 2020
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Terraform Version
Terraform Configuration Files
Expected Behavior
Expected that the local path of
~
would be recognized and terraform would proceed normally. However withlocal_state_tree
andlocal_pillar_roots
this isn't working out as expected. Does not seem to be expected behavior since the documentation does not mention this.Actual Behavior
Steps to Reproduce
terraform init
terraform plan
Errors out on plan. If I change the path to an absolute paths or relative paths, it works fine:
only using
~
errors out.Additional Context
Terraform is running in a python wrapper using
subprocess.call
, but otherwise nothing extravagant.References
May be similar to #17150
The text was updated successfully, but these errors were encountered: