mirror of
				https://github.com/containers/podman.git
				synced 2025-11-04 08:56:05 +08:00 
			
		
		
		
	fix: split string Entrypoint by space
Signed-off-by: Florian Bezannier <florian.bezannier@hotmail.fr>
This commit is contained in:
		@ -3,6 +3,7 @@ package define
 | 
			
		||||
import (
 | 
			
		||||
	"encoding/json"
 | 
			
		||||
	"fmt"
 | 
			
		||||
	"strings"
 | 
			
		||||
	"time"
 | 
			
		||||
 | 
			
		||||
	"github.com/containers/image/v5/manifest"
 | 
			
		||||
@ -106,7 +107,7 @@ func (insp *InspectContainerConfig) UnmarshalJSON(data []byte) error {
 | 
			
		||||
 | 
			
		||||
	switch entrypoint := aux.Entrypoint.(type) {
 | 
			
		||||
	case string:
 | 
			
		||||
		insp.Entrypoint = []string{entrypoint}
 | 
			
		||||
		insp.Entrypoint = strings.Split(entrypoint, " ")
 | 
			
		||||
	case []string:
 | 
			
		||||
		insp.Entrypoint = entrypoint
 | 
			
		||||
	case []interface{}:
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user