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

Improve usability of the migrate command #1371

Open
alejdg opened this issue Sep 19, 2024 · 0 comments
Open

Improve usability of the migrate command #1371

alejdg opened this issue Sep 19, 2024 · 0 comments

Comments

@alejdg
Copy link

alejdg commented Sep 19, 2024

In the migrate your model doc it is stated:

The following command will migrate a model named my-model to the desired controller, in this case called my-controller.

MODEL_NAME=my-model
MODEL_UUID=$(juju show-model $MODEL_NAME --format yaml | yq .$MODEL_NAME.model-uuid)
jimmctl migrate my-controller $MODEL_UUID

The user shouldn't need to run a juju command to get the the model UID to use that in a jimmctl command. To improve the usability, jimmctl should be able to do jimmctl migrate my-controller my-model.

If there's ambiguity in the my-model name since there could be models with the same name but in different controllers, jimm should require a unique identifier like ..

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

No branches or pull requests

1 participant