diff --git a/vsphere/internal/helper/structure/structure_helper.go b/vsphere/internal/helper/structure/structure_helper.go index 74aec0d61..d2d30431f 100644 --- a/vsphere/internal/helper/structure/structure_helper.go +++ b/vsphere/internal/helper/structure/structure_helper.go @@ -32,7 +32,9 @@ func ResourceIDString(d ResourceIDStringer, name string) string { func SliceInterfacesToStrings(s []interface{}) []string { var d []string for _, v := range s { - d = append(d, v.(string)) + if o, ok := v.(string); ok { + d = append(d, o) + } } return d }