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

--force flag is ignored for trusted clusters #1871

Closed
kontsevoy opened this issue Apr 12, 2018 · 0 comments
Closed

--force flag is ignored for trusted clusters #1871

kontsevoy opened this issue Apr 12, 2018 · 0 comments
Assignees
Labels

Comments

@kontsevoy
Copy link
Contributor

Here's what I get when I try to create a trusted cluster twice:

$ sudo tctl create -f /var/lib/teleport/trusted-cluster.yaml 
A fatal error occurred: trusted cluster is already enabled

In this case --force is basically the same as "update". The reason this flag is so important is because it allows you to create deployment scripts that run multiple times i.e. you want to ignore "already exists" situations without having to inject conditionals like "if it exists do not do that".

If it's enabled and a user wants to enable it -> just let it remain enabled. No need to bark with fatal errors.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants