From 13326bbd33648391f0f87d339db272145e3066ac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafa=C5=82=20Safin?= <51059348+rafsaf@users.noreply.github.com> Date: Mon, 4 Sep 2023 21:02:23 +0200 Subject: [PATCH] fix(provider): panic crash in provider, interface conversion error (#545) Co-authored-by: Pavel Boldyrev <627562+bpg@users.noreply.github.com> --- proxmoxtf/provider/provider.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/proxmoxtf/provider/provider.go b/proxmoxtf/provider/provider.go index d3a460c7..9f0f5a5d 100644 --- a/proxmoxtf/provider/provider.go +++ b/proxmoxtf/provider/provider.go @@ -136,7 +136,7 @@ func providerConfigure(_ context.Context, d *schema.ResourceData) (interface{}, node := n.(map[string]interface{}) nodeOverrides[node[mkProviderSSHNodeName].(string)] = ssh.ProxmoxNode{ Address: node[mkProviderSSHNodeAddress].(string), - Port: node[mkProviderSSHNodePort].(int32), + Port: int32(node[mkProviderSSHNodePort].(int)), } } }