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:
committed by
Vincent Demeester
parent
d0c32b1efa
commit
e8e6124050
+1
-1
@@ -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