portainer/portainer · error

expected NAME=VALUE got '%s'

Error message

expected NAME=VALUE got '%s'

What it means

Error "expected NAME=VALUE got '%s'" thrown in portainer/portainer.

Source

Thrown at api/cli/pairlist.go:18

package cli

import (
	portainer "github.com/portainer/portainer/api"

	"fmt"
	"strings"

	"github.com/alecthomas/kingpin/v2"
)

type pairList []portainer.Pair

// Set implementation for a list of portainer.Pair
func (l *pairList) Set(value string) error {
	parts := strings.SplitN(value, "=", 2)
	if len(parts) != 2 {
		return fmt.Errorf("expected NAME=VALUE got '%s'", value)
	}
	p := new(portainer.Pair)
	p.Name = parts[0]
	p.Value = parts[1]
	*l = append(*l, *p)
	return nil
}

// String implementation for a list of pair
func (l *pairList) String() string {
	return ""
}

// IsCumulative implementation for a list of pair
func (l *pairList) IsCumulative() bool {
	return true
}

View on GitHub (pinned to 17e74456ff)

When it happens

Trigger: Thrown at api/cli/pairlist.go:18 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of portainer/portainer@17e74456ff (2026-08-26). Data as JSON: /api/errors/05fdd9512917c948. Report an issue: GitHub.