diff options
author | Dan Timoney <dtimoney@att.com> | 2021-02-22 11:20:18 -0500 |
---|---|---|
committer | Dan Timoney <dtimoney@att.com> | 2021-02-22 13:56:52 -0500 |
commit | 38d8f5f82c952db34e139488dd7619f620ecc742 (patch) | |
tree | 546e24c91091dccca66180bf0e9c93a1b9ac4f4d /data-migrator/src | |
parent | 1e1fc55411b7569aae9f550046ca14e5db03d5cb (diff) |
Remove embedded passwords
Updated properties files to use env variables instead of
embedded default passwords.
Change-Id: I7b5a796bbb5d386dda8cba47cbb977ec47838a11
Issue-ID: SDNC-1482
Signed-off-by: Dan Timoney <dtimoney@att.com>
Former-commit-id: d0a86a8593f3832f11198e91c2343db6fad5a1a9
Diffstat (limited to 'data-migrator/src')
-rw-r--r-- | data-migrator/src/main/java/org/onap/sdnc/oam/datamigrator/common/MigratorConfiguration.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/data-migrator/src/main/java/org/onap/sdnc/oam/datamigrator/common/MigratorConfiguration.java b/data-migrator/src/main/java/org/onap/sdnc/oam/datamigrator/common/MigratorConfiguration.java index 40a1b920..9c3f7ac9 100644 --- a/data-migrator/src/main/java/org/onap/sdnc/oam/datamigrator/common/MigratorConfiguration.java +++ b/data-migrator/src/main/java/org/onap/sdnc/oam/datamigrator/common/MigratorConfiguration.java @@ -19,6 +19,7 @@ */ package org.onap.sdnc.oam.datamigrator.common; +import org.onap.ccsdk.sli.core.utils.common.EnvProperties; import org.slf4j.Logger; import org.slf4j.LoggerFactory; @@ -73,7 +74,7 @@ public class MigratorConfiguration { + propFile); } - Properties props = new Properties(); + Properties props = new EnvProperties(); props.load(new FileInputStream(propFile)); this.sourceHost = props.getProperty("org.onap.sdnc.datamigrator.source.host"); this.sourceUser = props.getProperty("org.onap.sdnc.datamigrator.source.user"); |