aboutsummaryrefslogtreecommitdiffstats
path: root/controlloop/common/model-impl/vfc/src/main
diff options
context:
space:
mode:
authorPamela Dragosh <pdragosh@research.att.com>2018-07-12 12:20:17 +0000
committerGerrit Code Review <gerrit@onap.org>2018-07-12 12:20:17 +0000
commitb266225319cf01ce0d778074fc1f792a3f7a1321 (patch)
tree52f9e60bef3d9ba1b0699f43eedf0c02e43c085c /controlloop/common/model-impl/vfc/src/main
parente49cefbc06e45e6d5fe1201c069c62578981f0bd (diff)
parent42afe260e4434b4a7311e9bce5ad4675887e11e3 (diff)
Merge "Username & password should be optional for VFC"
Diffstat (limited to 'controlloop/common/model-impl/vfc/src/main')
-rw-r--r--controlloop/common/model-impl/vfc/src/main/java/org/onap/policy/vfc/VFCManager.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/controlloop/common/model-impl/vfc/src/main/java/org/onap/policy/vfc/VFCManager.java b/controlloop/common/model-impl/vfc/src/main/java/org/onap/policy/vfc/VFCManager.java
index 175223968..9a7bf8894 100644
--- a/controlloop/common/model-impl/vfc/src/main/java/org/onap/policy/vfc/VFCManager.java
+++ b/controlloop/common/model-impl/vfc/src/main/java/org/onap/policy/vfc/VFCManager.java
@@ -1,6 +1,6 @@
/*-
* ============LICENSE_START=======================================================
- * Copyright (C) 2017 Intel Corp. All rights reserved.
+ * Copyright (C) 2017-2018 Intel Corp, AT&T. All rights reserved.
* ================================================================================
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -54,7 +54,9 @@ public final class VFCManager implements Runnable {
restManager = new RESTManager();
- setVFCParams(getPEManagerEnvProperty("vfc.url"), getPEManagerEnvProperty("vfc.username"), getPEManagerEnvProperty("vfc.password"));
+ // use getPEManagerEnvProperty() for required properties; others are optional
+ setVFCParams(getPEManagerEnvProperty("vfc.url"), PolicyEngine.manager.getEnvironmentProperty("vfc.username"),
+ PolicyEngine.manager.getEnvironmentProperty("vfc.password"));
}
public void setVFCParams(String baseUrl, String name, String pwd) {