Skip to content
This repository has been archived by the owner on Dec 8, 2020. It is now read-only.

Repository owner not changed succesfully #14

Open
m3gg3r opened this issue Dec 12, 2017 · 1 comment
Open

Repository owner not changed succesfully #14

m3gg3r opened this issue Dec 12, 2017 · 1 comment
Labels

Comments

@m3gg3r
Copy link

m3gg3r commented Dec 12, 2017

Hi,

I think there is a problem with changing the owner of an repository!

Terraform Version

0.11.1

Affected Resource(s)

  • bitbucket_repository

Terraform Configuration Files

before

resource "bitbucket_repository" "testrepository" {
  owner      = "${var.repository_owner}"
  name       = "testrepository"
  slug       = "testrepository"
}
variable "repository_owner" {
  type = "string"
  default = "m3gg3r"
}

https://i.imgur.com/ERoF5Q6.png
https://i.imgur.com/AeVMfhq.png
"Tobias Lückel" equals "m3gg3r"

after

resource "bitbucket_repository" "testrepository" {
  owner      = "${var.repository_owner}"
  name       = "testrepository"
  slug       = "testrepository"
}
variable "repository_owner" {
  type = "string"
  default = "meggertestteam"
}
Terraform will perform the following actions:

  ~ bitbucket_repository.testrepository
      owner: "m3gg3r" => "meggertestteam"


Plan: 0 to add, 1 to change, 0 to destroy.

https://i.imgur.com/8Smf8is.png

Expected Behavior

The owner of the repository should be changed from 'm3gg3r' to 'meggertestteam'

Actual Behavior

Terraform adds a second repository owned by 'meggertestteam' instead of changing the owner
https://i.imgur.com/PHs5qZZ.png

Steps to Reproduce

Please list the steps required to reproduce the issue, for example:

  1. terraform apply with configuration 'before'
  2. terraform apply with configuration 'after'
@cwood
Copy link
Contributor

cwood commented Jan 4, 2018

Im not sure our API allows you to actully change the owner through the API. Normally there is a transfer policy that has to happen when you move a repo to a different team.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants