support src in --secret

Signed-off-by: Victor Vieux <victorvieux@gmail.com>
This commit is contained in:
Victor Vieux 2016-11-23 14:30:57 -08:00
parent 36c919d313
commit dc5c8a7713
1 changed files with 1 additions and 1 deletions

View File

@ -182,7 +182,7 @@ func (o *SecretOpt) Set(value string) error {
value := parts[1] value := parts[1]
switch key { switch key {
case "source": case "source", "src":
spec.source = value spec.source = value
case "target": case "target":
tDir, _ := filepath.Split(value) tDir, _ := filepath.Split(value)