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

Datasource "artifactory_virtual_maven_repository" is not available in 10.x #873

Closed
5 tasks done
L4m3-DucK opened this issue Jan 18, 2024 · 1 comment · Fixed by #887
Closed
5 tasks done

Datasource "artifactory_virtual_maven_repository" is not available in 10.x #873

L4m3-DucK opened this issue Jan 18, 2024 · 1 comment · Fixed by #887
Assignees
Labels
bug Something isn't working

Comments

@L4m3-DucK
Copy link

L4m3-DucK commented Jan 18, 2024

Hello,

Describe the bug
Datasource "artifactory_virtual_maven_repository" is not available in 10.x

Requirements for and issue

  • A description of the bug
    We want to add a virtual datasource Maven repository "artifactory_virtual_maven_repository" like it is mentionned in the documentation
    /docs/data-sources/virtual_maven_repository
    but this datasource is no longer supported in versions 10.0.2 and 10.1.0 as shown in the following error message :
╷
│ Error: Invalid data source
│
│   on modules/maven/main.tf line 17, in data "artifactory_virtual_maven_repository" "virtual-global-maven":
│   17: data "artifactory_virtual_maven_repository" "virtual-global-maven" {
│
│ The provider jfrog/artifactory does not support data source "artifactory_virtual_maven_repository".
│
│ Did you intend to use the managed resource type "artifactory_virtual_maven_repository"? If so, declare this using a "resource" block instead of a "data" block.
╵
  • A fully functioning terraform snippet that can be copy&pasted (no outside files or ENV vars unless that's part of the issue). If this is not supplied, this issue will likely be closed without any effort expended.

The documentation example is enough to reproduce the bug

data "artifactory_virtual_maven_repository" "virtual-maven" {
  key = "virtual-maven"
}

and terraform apply

  • Your version of artifactory (you can curl it at $host/artifactory/api/system/version)
    EnterpriseX license 7.71.9 rev 77109900

  • Your version of terraform
    Terraform v1.6.3

  • Your version of terraform provider
    10.0.2 et 10.1.0

Expected behavior
The datasource would be available for maven virtual repository.

@L4m3-DucK L4m3-DucK added the bug Something isn't working label Jan 18, 2024
@alexhung
Copy link
Member

@L4m3-DucK Thanks for the report. Looks like we removed the maven repository data source by mistake.

alexhung added a commit that referenced this issue Feb 14, 2024
…-maven-repo

Add data source 'artifactory_virtual_maven_repository' back
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants