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:
committed by
Vincent Demeester
parent
6470449577
commit
077a92771f
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user