From 401dcff8389e10c6fd88ad34f82daccb8f800d3f Mon Sep 17 00:00:00 2001 From: baude Date: Thu, 17 Dec 2020 12:07:13 -0600 Subject: podman v3 container bindings convert the golang container bindings to all use options so that changes in the future are more managable. Signed-off-by: baude --- pkg/bindings/volumes/types_prune_options.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'pkg/bindings/volumes/types_prune_options.go') diff --git a/pkg/bindings/volumes/types_prune_options.go b/pkg/bindings/volumes/types_prune_options.go index 94d81e737..cdbc03fc9 100644 --- a/pkg/bindings/volumes/types_prune_options.go +++ b/pkg/bindings/volumes/types_prune_options.go @@ -12,7 +12,7 @@ import ( /* This file is generated automatically by go generate. Do not edit. -Created 2020-12-16 11:59:25.972202545 -0600 CST m=+0.000209541 +Created 2020-12-18 15:58:14.463307398 -0600 CST m=+0.000180868 */ // Changed @@ -56,10 +56,10 @@ func (o *PruneOptions) ToParams() (url.Values, error) { params.Set(fieldName, strconv.FormatUint(f.Uint(), 10)) case reflect.Slice: typ := reflect.TypeOf(f.Interface()).Elem() - slice := reflect.MakeSlice(reflect.SliceOf(typ), f.Len(), f.Cap()) switch typ.Kind() { case reflect.String: - s, ok := slice.Interface().([]string) + sl := f.Slice(0, f.Len()) + s, ok := sl.Interface().([]string) if !ok { return nil, errors.New("failed to convert to string slice") } -- cgit v1.2.3-54-g00ecf