mirror of
https://github.com/fnproject/fn.git
synced 2022-10-28 21:29:17 +03:00
fn: fix precedence of path choice during route creation (#427)
Fixes #413
This commit is contained in:
@@ -297,7 +297,7 @@ func (a *routesCmd) create(c *cli.Context) error {
|
||||
if ff.Timeout != nil {
|
||||
timeout = *ff.Timeout
|
||||
}
|
||||
if ff.Path != nil {
|
||||
if route == "" && ff.Path != nil {
|
||||
route = *ff.Path
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user