1
0
mirror of https://github.com/docker/cli.git synced 2026-01-19 21:41:31 +03:00

Allow links to be specified with only the name if this matches the alias

Signed-off-by: Antonio Murdaca <me@runcom.ninja>
Upstream-commit: e8e6124050
Component: cli
This commit is contained in:
Antonio Murdaca
2015-05-07 22:02:14 +02:00
committed by Vincent Demeester
parent 6470449577
commit 077a92771f

View File

@@ -196,7 +196,7 @@ func ValidateAttach(val string) (string, error) {
}
func ValidateLink(val string) (string, error) {
if _, err := parsers.PartParser("name:alias", val); err != nil {
if _, _, err := parsers.ParseLink(val); err != nil {
return val, err
}
return val, nil