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

Signed-off-by: Antonio Murdaca <me@runcom.ninja>
This commit is contained in:
Antonio Murdaca 2015-05-07 22:02:14 +02:00 committed by Vincent Demeester
parent d0c32b1efa
commit e8e6124050
1 changed files with 1 additions and 1 deletions

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