Skip to content
This repository has been archived by the owner on Mar 11, 2021. It is now read-only.

Doesn't resync repos list before enabling #1

Open
gboddin opened this issue Jul 22, 2018 · 0 comments
Open

Doesn't resync repos list before enabling #1

gboddin opened this issue Jul 22, 2018 · 0 comments

Comments

@gboddin
Copy link

gboddin commented Jul 22, 2018

Hi, pretty nice terraform plugin it's working awesome :) , one issue though :

If terraform is used to also create the git repository on the git provider, there's a huge chance that drone hasn't refreshed it yet, thus resulting in a 404 :

github_repository.ne-subsite-d7[0]: Refreshing state... (ID: testproject02)
github_repository.ne-subsite-d7[1]: Refreshing state... (ID: testproject03)
github_branch_protection.ne-subsite-d7[0]: Refreshing state... (ID: testproject02:master)
github_branch_protection.ne-subsite-d7[1]: Refreshing state... (ID: testproject03:master)
github_branch_protection.ne-subsite-d7[0]: Modifying... (ID: testproject02:master)
  required_pull_request_reviews.0.dismissal_teams.#:          "0" => "1"
  required_pull_request_reviews.0.dismissal_teams.3150709561: "" => "qa-team"
  restrictions.0.teams.#:                                     "0" => "3"
  restrictions.0.teams.1318285338:                            "" => "devops"
  restrictions.0.teams.3150709561:                            "" => "qa-team"
github_branch_protection.ne-subsite-d7[1]: Modifying... (ID: testproject03:master)
  required_pull_request_reviews.0.dismissal_teams.#:          "0" => "1"
  required_pull_request_reviews.0.dismissal_teams.3150709561: "" => "qa-team"
  restrictions.0.teams.#:                                     "0" => "3"
  restrictions.0.teams.1318285338:                            "" => "devops"
  restrictions.0.teams.3150709561:                            "" => "qa-team"
drone_repo.ne-subsite-d7[1]: Creating...
  hooks.#:          "" => "4"
  hooks.1329302135: "" => "deployment"
  hooks.1396138718: "" => "pull_request"
  hooks.398155140:  "" => "tag"
  hooks.696883710:  "" => "push"
  repository:       "" => "org/testproject03"
  trusted:          "" => "true"
  visibility:       "" => "private"
drone_repo.ne-subsite-d7[0]: Creating...
  hooks.#:          "" => "4"
  hooks.1329302135: "" => "deployment"
  hooks.1396138718: "" => "pull_request"
  hooks.398155140:  "" => "tag"
  hooks.696883710:  "" => "push"
  repository:       "" => "org/testproject02"
  trusted:          "" => "true"
  visibility:       "" => "private"
github_branch_protection.ne-subsite-d7[1]: Modifications complete after 0s (ID: testproject03:master)
github_branch_protection.ne-subsite-d7[0]: Modifications complete after 0s (ID: testproject02:master)

Error: Error applying plan:

2 error(s) occurred:

* drone_repo.ne-subsite-d7[1]: 1 error(s) occurred:

* drone_repo.ne-subsite-d7.1: client error 404: 
* drone_repo.ne-subsite-d7[0]: 1 error(s) occurred:

* drone_repo.ne-subsite-d7.0: client error 404: 

Would it be possible to trigger a sync on the first drone_repo resource ?

@gboddin gboddin changed the title Doesn't resync repo before enabling Doesn't resync repos list before enabling Jul 22, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant