Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix reflect_region not picked up in sequencer #583

Merged
merged 1 commit into from
Feb 6, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions common/src/main/java/com/google/udmi/util/SiteModel.java
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,15 @@ public String getRegistryId() {
return executionConfiguration.registry_id;
}

/**
* Get the reflect region name
*
* @return reflect region
*/
public String getReflectRegion() {
return executionConfiguration.reflect_region;
}

/**
* Get the cloud region for this model.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,8 @@ static void ensureValidatorConfig() {
.orElse(model.getCloudRegion());
validatorConfig.registry_id = Optional.ofNullable(validatorConfig.registry_id)
.orElse(model.getRegistryId());
validatorConfig.reflect_region = Optional.ofNullable(validatorConfig.reflect_region)
.orElse(model.getReflectRegion());
} catch (Exception e) {
throw new RuntimeException("While loading " + configFile, e);
}
Expand Down