From e8e612405093242c29306f9f80baf5537e15ee0f Mon Sep 17 00:00:00 2001 From: Antonio Murdaca Date: Thu, 7 May 2015 22:02:14 +0200 Subject: [PATCH] Allow links to be specified with only the name if this matches the alias Signed-off-by: Antonio Murdaca --- opts/opts.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/opts/opts.go b/opts/opts.go index 3801596631..c330c27a5d 100644 --- a/opts/opts.go +++ b/opts/opts.go @@ -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