mirror of
https://github.com/bpg/terraform-provider-proxmox.git
synced 2025-06-30 10:33:46 +00:00
cleaning up and refactoring the VM code, add some acceptance tests around disks, few minor bugfixes Signed-off-by: Pavel Boldyrev <627562+bpg@users.noreply.github.com>
12 lines
294 B
Go
12 lines
294 B
Go
package utils
|
|
|
|
// ConvertToStringSlice helps convert interface slice to string slice.
|
|
func ConvertToStringSlice(interfaceSlice []interface{}) []string {
|
|
resultSlice := []string{}
|
|
for _, val := range interfaceSlice {
|
|
resultSlice = append(resultSlice, val.(string))
|
|
}
|
|
|
|
return resultSlice
|
|
}
|