aboutsummaryrefslogtreecommitdiff
path: root/src/main/scala/org/apache/toree/gateway/ToreeGateway.scala
diff options
context:
space:
mode:
authorLuciano Resende <lresende@apache.org>2017-01-19 12:39:03 -0800
committerLuciano Resende <lresende@apache.org>2017-01-23 11:10:04 -0800
commit78920739e7f5c3e1ee6d6c4632e513aabf108eb2 (patch)
treee083c557ff6a77e78ff56980d2a31a9c5d4d68f1 /src/main/scala/org/apache/toree/gateway/ToreeGateway.scala
parentf378b236663cef80a02215714e7b5590fdc8e26b (diff)
downloadtoree-gateway-78920739e7f5c3e1ee6d6c4632e513aabf108eb2.tar.gz
toree-gateway-78920739e7f5c3e1ee6d6c4632e513aabf108eb2.tar.bz2
toree-gateway-78920739e7f5c3e1ee6d6c4632e513aabf108eb2.zip
Lifecycle management for Toree Gateway
The lifecycle enables starting/stopping the remote Toree instance when a Notebook is started/stopped. This also includes other minor changes to support Python 3.5.x
Diffstat (limited to 'src/main/scala/org/apache/toree/gateway/ToreeGateway.scala')
-rw-r--r--src/main/scala/org/apache/toree/gateway/ToreeGateway.scala2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/scala/org/apache/toree/gateway/ToreeGateway.scala b/src/main/scala/org/apache/toree/gateway/ToreeGateway.scala
index 07ba94a..e40050f 100644
--- a/src/main/scala/org/apache/toree/gateway/ToreeGateway.scala
+++ b/src/main/scala/org/apache/toree/gateway/ToreeGateway.scala
@@ -95,7 +95,7 @@ object ToreeGatewayClient extends App {
def getConfigurationFilePath: String = {
var filePath = "/opt/toree-gateway/conf/profile.json"
- if (args.length == 0) {
+ if (args.length > 0) {
for (arg <- args) {
if (arg.contains("json")) {
filePath = arg