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

Error handling: lagoon_api_token, lagoon_api_endpoint for plugins/modules #13

Open
steveworley opened this issue Dec 31, 2021 · 0 comments

Comments

@steveworley
Copy link
Contributor

lagoon_api_token and lagoon_api_endpoint are required parameters to all API requests and if not provided the play fails with an unhelpful message TypeError: a bytes-like object is required, not 'str'. We should make sure that these are handled properly and a usable error message is provided.

We should look to try and do the following:

  • Set a default value for lagoon_api_endpoint
  • Attempt to generate a token with host configuration - lagoon will respond with a token via SSH
ssh -oStrictHostKeyChecking=no [email protected] -p 32222 token
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