0
0
mirror of https://github.com/bpg/terraform-provider-proxmox.git synced 2025-08-22 19:38:35 +00:00

fix(provider): panic crash in provider, interface conversion error (#545)

Co-authored-by: Pavel Boldyrev <627562+bpg@users.noreply.github.com>
This commit is contained in:
Rafał Safin 2023-09-04 21:02:23 +02:00 committed by GitHub
parent 44d6d6b080
commit 13326bbd33
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)),
}
}
}