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

Allow terraform to have null workspace #57402

Open
wants to merge 1 commit into
base: devel
from

Conversation

Projects
None yet
2 participants
@AndrewRPerkins
Copy link

commented Jun 5, 2019

SUMMARY

The new remote backend (https://www.terraform.io/docs/backends/types/remote.html) does not support workspace commands, as it handles workspaces through configuration. Workspace commands fail with an error message workspaces not supported. Ansible currently always tries to list the workspaces to check whether it is in the active workspace.

This allows for a null workspace flag to be passed which bypasses the workspaces checks. This would allow for remote backends to be supported without changing default workspace behaviour.

ISSUE TYPE
  • Bugfix Pull Request
COMPONENT NAME

terraform

ADDITIONAL INFORMATION

Example of workspace configuration for remote workspaces (truncated)

{

    "backend": {
        "type": "remote",
        "config": {
            "workspaces": {
                "name": "example",
                "prefix": null
            }
        },
    }
    ]
}
Allow terraform to have null workspace
The new remote backend (https://www.terraform.io/docs/backends/types/remote.html) does not support workspace commands, as it handles workspaces through configuration. Workspace commands fail with an error message `workspaces not supported`. Ansible currently always tries to list the workspaces to check whether it is in the active workspace. 

This allows for a null workspace flag to be passed which bypasses the workspaces checks.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.