mirror of https://github.com/docker/cli.git
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:
parent
d0c32b1efa
commit
e8e6124050
|
@ -196,7 +196,7 @@ func ValidateAttach(val string) (string, error) {
|
||||||
}
|
}
|
||||||
|
|
||||||
func ValidateLink(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, err
|
||||||
}
|
}
|
||||||
return val, nil
|
return val, nil
|
||||||
|
|
Loading…
Reference in New Issue