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

Zone指定してもProfileのデフォルトZoneがロードしてしまう #1123

Open
lvctr opened this issue Dec 13, 2023 · 1 comment
Open
Assignees
Labels

Comments

@lvctr
Copy link
Member

lvctr commented Dec 13, 2023

No description provided.

@lvctr
Copy link
Member Author

lvctr commented Jan 26, 2024

メモ こちらの条件をなくす
https://github.com/sacloud/terraform-provider-sakuracloud/blob/master/sakuracloud/config.go#L114-L116

メモ こちらdefaults.Zone使うようにする

func getZone(d resourceValueGettable, client *APIClient) string {
zone, ok := d.GetOk("zone")
if ok {
if z, ok := zone.(string); ok && z != "" {
return z
}
}
return client.defaultZone
}

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

No branches or pull requests

2 participants