From 6a672785e876be39f0d89defa2e885e060120366 Mon Sep 17 00:00:00 2001 From: Sungminlee Date: Fri, 28 Oct 2022 18:47:15 +0900 Subject: [PATCH] fix_region_code_when_get_root_password --- ncloud/data_source_ncloud_root_password.go | 1 + 1 file changed, 1 insertion(+) diff --git a/ncloud/data_source_ncloud_root_password.go b/ncloud/data_source_ncloud_root_password.go index 64f4f2359..6c51cb91e 100644 --- a/ncloud/data_source_ncloud_root_password.go +++ b/ncloud/data_source_ncloud_root_password.go @@ -75,6 +75,7 @@ func getClassicRootPassword(d *schema.ResourceData, config *ProviderConfig) (*st func getVpcRootPassword(d *schema.ResourceData, config *ProviderConfig) (*string, error) { reqParams := &vserver.GetRootPasswordRequest{ + RegionCode: &config.RegionCode, ServerInstanceNo: ncloud.String(d.Get("server_instance_no").(string)), PrivateKey: ncloud.String(d.Get("private_key").(string)), }