Bugfix in fission-bundle arg parsing

This commit is contained in:
Soam Vasani
2016-12-11 19:58:26 -08:00
parent 5e3adc0b59
commit f1e1da4ceb
+2 -1
View File
@@ -87,6 +87,7 @@ Options:
--etcdUrl=<etcdUrl> Etcd URL. --etcdUrl=<etcdUrl> Etcd URL.
--filepath=<filepath> Directory to store functions in. --filepath=<filepath> Directory to store functions in.
--namespace=<namespace> Kubernetes namespace in which to run function containers. Defaults to 'fission-function'. --namespace=<namespace> Kubernetes namespace in which to run function containers. Defaults to 'fission-function'.
--kubewatcher Start Kubernetes events watcher.
` `
arguments, err := docopt.Parse(usage, nil, true, "fission-bundle", false) arguments, err := docopt.Parse(usage, nil, true, "fission-bundle", false)
if err != nil { if err != nil {
@@ -115,7 +116,7 @@ Options:
runPoolmgr(port, controllerUrl, namespace) runPoolmgr(port, controllerUrl, namespace)
} }
if arguments["--kubewatcher"] != nil { if arguments["--kubewatcher"] == true {
runKubeWatcher(controllerUrl, routerUrl) runKubeWatcher(controllerUrl, routerUrl)
} }