inspect: fix printing of driver options

Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
pull/1066/head
CrazyMax 3 years ago
parent b8bcf1d810
commit 082c83b825
No known key found for this signature in database
GPG Key ID: 3248E46B6BB8C7F7

@ -98,11 +98,10 @@ func runInspect(dockerCli command.Cli, in inspectOptions) error {
var driverOpts []string
for k, v := range n.DriverOpts {
driverOpts = append(driverOpts, fmt.Sprintf("\t%s=%s\n", k, v))
driverOpts = append(driverOpts, fmt.Sprintf("%s=%q", k, v))
}
if len(driverOpts) > 0 {
fmt.Fprintf(w, "Driver Options: %s", strings.Join(driverOpts, ","))
fmt.Fprintf(w, "Driver Options:\t%s\n", strings.Join(driverOpts, " "))
}
if err := ngi.drivers[i].di.Err; err != nil {

Loading…
Cancel
Save