Skip to content

Commit c3ee13e

Browse files
committed
more #371
1 parent 81685ff commit c3ee13e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

marklogic-data-hub/src/main/java/com/marklogic/hub/HubConfig.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,8 +135,7 @@ public HubConfig(String projectDir) {
135135
*/
136136
public static HubConfig hubFromEnvironment(String projectDir, String environment) {
137137
HubConfig config = new HubConfig(projectDir);
138-
config.environmentProperties = config.getProperties(environment);
139-
config.loadConfigurationFromProperties(config.environmentProperties);
138+
config.loadConfigurationFromProperties(config.getProperties(environment));
140139
return config;
141140
}
142141

@@ -151,6 +150,8 @@ private Properties getProperties(String environment) {
151150
}
152151

153152
public void loadConfigurationFromProperties(Properties environmentProperties) {
153+
this.environmentProperties = environmentProperties;
154+
154155
host = getEnvPropString(environmentProperties, "mlHost", host);
155156

156157
stagingDbName = getEnvPropString(environmentProperties, "mlStagingDbName", stagingDbName);

0 commit comments

Comments
 (0)