Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add operating-system and join-path modules #3

Merged
merged 5 commits into from Mar 1, 2018
Merged

Add operating-system and join-path modules #3

merged 5 commits into from Mar 1, 2018

Conversation

brikis98
Copy link
Member

@brikis98 brikis98 commented Mar 1, 2018

This PR adds two modules:

  1. operating-system: This can be used to detect the operating system on which Terraform is currently running.

  2. join-path: This can be used to join multiple path parts (folders, files) into a single path, using the proper separator for the current OS.

The primary use case is so we can format paths properly on Windows vs Linux, such as in the server-group module, where the path to our Python script is currently broken on Windows.

Note that we don't currently have a good way to actually test this on Windows :(

@brikis98 brikis98 merged commit b924fd8 into master Mar 1, 2018
@brikis98 brikis98 deleted the paths branch March 1, 2018 00:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant