Update cli to use put for deploy

This commit is contained in:
James Jeffrey
2017-07-06 13:31:35 -07:00
parent 55239dbd80
commit 9d677fab63
2 changed files with 22 additions and 3 deletions

View File

@@ -11,9 +11,9 @@ import (
"time"
functions "github.com/funcy/functions_go"
client "gitlab-odx.oracle.com/odx/functions/fn/client"
"github.com/funcy/functions_go/models"
"github.com/urfave/cli"
client "gitlab-odx.oracle.com/odx/functions/fn/client"
)
func deploy() cli.Command {
@@ -156,7 +156,7 @@ func (p *deploycmd) route(c *cli.Context, ff *funcfile) error {
if err := routeWithFuncFile(c, ff, rt); err != nil {
return fmt.Errorf("error getting route with funcfile: %s", err)
}
return routesCmd.patchRoute(c, p.appName, ff.Path, rt)
return routesCmd.putRoute(c, p.appName, ff.Path, rt)
}
func expandEnvConfig(configs map[string]string) map[string]string {