atlassian / terraform-provider-artifactory

Terraform provider to manage Artifactory
Apache License 2.0
89 stars 42 forks source link

Updating resource_artifactory_virtual_repository without repo_layout_ref fails #49

Closed AlexanderRMcNeill closed 5 years ago

AlexanderRMcNeill commented 5 years ago

Community Note

Terraform Version

0.11.13

Affected Resource(s)

Terraform Configuration Files

resource "artifactory_virtual_repository" "example" {
  key                                       = "docker"
  package_type                     = "docker"
  description                         = "Internal docker registry + official Docker Hub"
  repositories                        = [
    "docker-internal",
    "docker-hub",
    "docker-mcr",
    "docker-gcr",
  ]
  default_deployment_repo = "docker-internal"
}

Debug Output

N/A

Panic Output

N/A

Expected Behavior

Updating the resource should work without setting repo_layout_ref attribute.

Actual Behavior

API returns the following error:

[
  {
    "Status": 400
    "Message": "Unable to find repository layout by the name: "
  }
]

Steps to Reproduce

  1. terraform apply
  2. Update description
  3. Attempt to apply the change.

Important Factoids

References