mirror of
https://github.com/containers/podman.git
synced 2026-10-24 02:39:13 -04:00
fix: split string Entrypoint by space
Signed-off-by: Florian Bezannier <florian.bezannier@hotmail.fr>
This commit is contained in:
1 parent
90e6478cf8
commit
77bcf233eb
1 file changed
+2
-1
@@ -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