Skip to content

provider config: warn instead of error if xray version can't be obtained #339

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

aliculPix4D
Copy link

@aliculPix4D aliculPix4D commented Jul 24, 2025

provider config: warn instead of error if xray version can't be obtained

Alternative solution:
Add a new option to the provider configuration schema e.g. xray_version_check: bool with true being the default behaviour. A long time ago, Artifactory Terraform provider had the similar check_licence option in the configuration schema

Closes: #338

@aliculPix4D aliculPix4D requested a review from chukka as a code owner July 24, 2025 14:29
Copy link

github-actions bot commented Jul 24, 2025

CLA Assistant Lite bot All contributors have signed the CLA ✍️ ✅

@aliculPix4D
Copy link
Author

I have read the CLA Document and I hereby sign the CLA

@@ -159,7 +159,7 @@ func (p *XrayProvider) Configure(ctx context.Context, req provider.ConfigureRequ

version, err := util.GetXrayVersion(restyClient)
if err != nil {
resp.Diagnostics.AddError(
resp.Diagnostics.AddWarning(
"Error getting Xray version",
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe: Unable to fetch Xray version is better fit.

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

Successfully merging this pull request may close these issues.

Error getting Xray version when no xray resources are being created
1 participant