Fixing reading key store pwd from env
[aai/data-router.git] / src / main / java / org / onap / aai / datarouter / Application.java
index 3ea6ab8..1d4bdc3 100644 (file)
@@ -32,7 +32,7 @@ import org.springframework.boot.web.support.SpringBootServletInitializer;
 public class Application extends SpringBootServletInitializer{
 
     public static void main(String[] args) {
-      String keyStorePassword = System.getProperty("KEY_STORE_PASSWORD");
+      String keyStorePassword = System.getenv("KEY_STORE_PASSWORD");
       if(keyStorePassword==null || keyStorePassword.isEmpty()){
         throw new RuntimeException("Env property KEY_STORE_PASSWORD not set");
       }