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