hashicorp-services/tfm

Error handling for workspaces list and workspace-map map present at the same time in cfg file

Josh-Tracy opened this issue · 1 comments

Describe the bug
A clear and concise description of what the bug is.

To Reproduce
Steps to reproduce the behavior:

  1. Add "workspaces" list to the .tfm.hcl config file
  2. Add "workspac-map" to the .tfm.hcl config file
  3. Run tfm copy workspaces

Expected behavior
1 or the other should be used based on order of precedence or tell the user to not have both present at once

Providing both the workspaces list and workspace-map in the same config file will result in an output message informing the user that this is not allowed.