You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@openwhisk.apache.org by GitBox <gi...@apache.org> on 2018/06/28 04:37:51 UTC

[GitHub] tz70s commented on a change in pull request #3817: Generate whisk.conf as default config for wskadmin-next.

tz70s commented on a change in pull request #3817: Generate whisk.conf as default config for wskadmin-next.
URL: https://github.com/apache/incubator-openwhisk/pull/3817#discussion_r198705594
 
 

 ##########
 File path: tools/admin/src/main/scala/whisk/core/cli/Main.scala
 ##########
 @@ -132,7 +132,10 @@ object Main {
   }
 
   private def initConfig(conf: Conf): Unit = {
-    conf.configFile.foreach(f => System.setProperty("config.file", f.getAbsolutePath))
+    val file = conf.configFile.getOrElse {
 
 Review comment:
   Got it, simply don't set the property once the file is not exist now.
   
   Error msg:
   ```bash
   [wskadmin] Error: Incomplete config. Provide application.conf via '-c' option
   ```

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services