mirror of
https://git.uploadfilter24.eu/lerentis/terraform-provider-gitea.git
synced 2024-12-04 21:08:11 +00:00
fixed conditions of migration
This commit is contained in:
parent
bc28fe186f
commit
948b20a6d2
6 changed files with 12 additions and 12 deletions
2
Makefile
2
Makefile
|
@ -5,7 +5,7 @@ KERNEL?=$$(uname -s | tr '[:upper:]' '[:lower:]')
|
||||||
|
|
||||||
GOFMT ?= gofmt -s
|
GOFMT ?= gofmt -s
|
||||||
|
|
||||||
VERSION = 0.13.0
|
VERSION = 0.14.0
|
||||||
|
|
||||||
test: fmt-check
|
test: fmt-check
|
||||||
go test -i $(TEST) || exit 1
|
go test -i $(TEST) || exit 1
|
||||||
|
|
|
@ -17,7 +17,7 @@ terraform {
|
||||||
required_providers {
|
required_providers {
|
||||||
gitea = {
|
gitea = {
|
||||||
source = "Lerentis/gitea"
|
source = "Lerentis/gitea"
|
||||||
version = "0.13.0"
|
version = "0.14.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -17,7 +17,7 @@ terraform {
|
||||||
required_providers {
|
required_providers {
|
||||||
gitea = {
|
gitea = {
|
||||||
source = "Lerentis/gitea"
|
source = "Lerentis/gitea"
|
||||||
version = "0.13.0"
|
version = "0.14.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -2,7 +2,7 @@ terraform {
|
||||||
required_providers {
|
required_providers {
|
||||||
gitea = {
|
gitea = {
|
||||||
source = "terraform.local/lerentis/gitea"
|
source = "terraform.local/lerentis/gitea"
|
||||||
version = "0.13.0"
|
version = "0.14.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -2,7 +2,7 @@ terraform {
|
||||||
required_providers {
|
required_providers {
|
||||||
gitea = {
|
gitea = {
|
||||||
source = "Lerentis/gitea"
|
source = "Lerentis/gitea"
|
||||||
version = "0.13.0"
|
version = "0.14.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -131,14 +131,14 @@ func resourceRepoCreate(d *schema.ResourceData, meta interface{}) (err error) {
|
||||||
orgRepo = true
|
orgRepo = true
|
||||||
}
|
}
|
||||||
|
|
||||||
if (d.Get(repoMirror)).(bool) {
|
var cloneAddr string
|
||||||
|
if d.Get(migrationCloneAddresse).(string) != "" {
|
||||||
|
cloneAddr = d.Get(migrationCloneAddresse).(string)
|
||||||
|
} else {
|
||||||
|
cloneAddr = d.Get(migrationCloneAddress).(string)
|
||||||
|
}
|
||||||
|
|
||||||
var cloneAddr string
|
if cloneAddr != "" {
|
||||||
if d.Get(migrationCloneAddresse).(string) != "" {
|
|
||||||
cloneAddr = d.Get(migrationCloneAddresse).(string)
|
|
||||||
} else {
|
|
||||||
cloneAddr = d.Get(migrationCloneAddress).(string)
|
|
||||||
}
|
|
||||||
|
|
||||||
opts := gitea.MigrateRepoOption{
|
opts := gitea.MigrateRepoOption{
|
||||||
RepoName: d.Get(repoName).(string),
|
RepoName: d.Get(repoName).(string),
|
||||||
|
|
Loading…
Reference in a new issue